Date: Thursday, June 17, 2021 @ 20:54:25 Author: maximbaz Revision: 964758
goimapnotify: add Added: goimapnotify/ goimapnotify/repos/ goimapnotify/repos/community-x86_64/ goimapnotify/trunk/ goimapnotify/trunk/PKGBUILD ----------+ PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) Added: goimapnotify/trunk/PKGBUILD =================================================================== --- goimapnotify/trunk/PKGBUILD (rev 0) +++ goimapnotify/trunk/PKGBUILD 2021-06-17 20:54:25 UTC (rev 964758) @@ -0,0 +1,39 @@ +# Maintainer: Maxim Baz <$pkgname at maximbaz dot com> +# Contributor: Jorge Araya Navarro <[email protected]> + +pkgname=goimapnotify +pkgver=2.3.1 +pkgrel=2 +pkgdesc="Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE, golang version." +url="https://gitlab.com/shackra/goimapnotify" +license=('GPL3') +arch=('x86_64') +depends=('glibc') +makedepends=('git' 'go') +source=("${pkgname}-${pkgver}.tar.gz::${url}/-/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('fa91cdaa2e2727a98d634acb16c397806a3a797bbccd4d95da35b519807c89ce67a6f980e2fe275b297d49b0d9170263bb590c3b613f0003a73e3232a78d1bbb') + +build() { + cd "${pkgname}-${pkgver}" + + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build -ldflags "-linkmode=external -extldflags=$LDFLAGS" +} + +check() { + cd "${pkgname}-${pkgver}" + + go test ./... +} + +package() { + cd "${pkgname}-${pkgver}" + + install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}" + install -Dm644 -t "${pkgdir}/usr/lib/systemd/user/" [email protected] + install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE +}
