diff options
author | Jorge Javier Araya Navarro | 2021-03-19 20:03:24 -0600 |
---|---|---|
committer | Jorge Javier Araya Navarro | 2021-03-19 20:03:24 -0600 |
commit | e089068e7a960794bd2a9aec310c3667c99df541 (patch) | |
tree | 01052f4a6d2ee1e83852b8d03e87279cc72d7c80 | |
parent | 074850d6fa1a553636f2866f14ed80fb09275c13 (diff) | |
download | aur-e089068e7a960794bd2a9aec310c3667c99df541.tar.gz |
fix: Update PKGBUILD
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 38 |
3 files changed, 22 insertions, 30 deletions
@@ -1,9 +1,7 @@ -# Generated by mksrcinfo v8 -# Sat May 11 02:35:31 UTC 2019 pkgbase = goimapnotify pkgdesc = Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE, golang version. - pkgver = 2.0 - pkgrel = 4 + pkgver = 2.1 + pkgrel = 1 url = https://gitlab.com/shackra/goimapnotify arch = i686 arch = x86_64 @@ -11,9 +9,9 @@ pkgbase = goimapnotify makedepends = go options = !strip options = !emptydirs - source = https://gitlab.com/shackra/goimapnotify/repository/2.0/archive.tar.gz + source = https://gitlab.com/shackra/goimapnotify/-/archive/2.1/goimapnotify-2.1.zip source = goimapnotify@.service - sha256sums = 9a241d12a5b4cae12fe3d0b0bc5d376da228934f7f344d012e213ac184970471 + sha256sums = cb2cf936fa1e9697d49aa4ea88363d119df33c0996a037be902db030255e2c09 sha256sums = fad87eddc39f8ba2f7637024de96238cd9d5b0a7ce271ce75062127be74c1d0b pkgname = goimapnotify diff --git a/.gitignore b/.gitignore index 99f4259e7d05..4130e712d924 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -archive.tar.gz -*.tar.xz +*.tar.* +*.zip pkg/ src/ @@ -1,37 +1,31 @@ -# Maintainer: Jorge Araya Navarro <jorgejavieran@yahoo.com.mx> +# Maintainer: Jorge Araya Navarro <jorge@esavara.cr> pkgname=goimapnotify -pkgver=2.0 -pkgrel=4 +pkgver=2.1 +pkgrel=1 pkgdesc="Execute scripts on IMAP mailbox changes (new/deleted/updated messages) using IDLE, golang version." arch=('i686' 'x86_64') url="https://gitlab.com/shackra/goimapnotify" license=('GPL') makedepends=('go') options=('!strip' '!emptydirs') -source=("https://gitlab.com/shackra/goimapnotify/repository/${pkgver}/archive.tar.gz" +source=("https://gitlab.com/shackra/goimapnotify/-/archive/${pkgver}/goimapnotify-${pkgver}.zip" "goimapnotify@.service") -sha256sums=('9a241d12a5b4cae12fe3d0b0bc5d376da228934f7f344d012e213ac184970471' +sha256sums=('cb2cf936fa1e9697d49aa4ea88363d119df33c0996a037be902db030255e2c09' 'fad87eddc39f8ba2f7637024de96238cd9d5b0a7ce271ce75062127be74c1d0b') -prepare() { - _dir=`find "$PWD" -iname "${pkgname}-${pkgver}-*" -type d` - rm -rf "${srcdir}/src" - mkdir -p "$srcdir"/src/gitlab.com/shackra/ - ln -sf $_dir "$srcdir"/src/gitlab.com/shackra/goimapnotify -} - build() { - export GOPATH="$srcdir" - export GOBIN="$srcdir/bin" - export PATH=$PATH:$GOPATH/bin - cd "$GOPATH"/src/gitlab.com/shackra/goimapnotify - go get . -} - + cd "$pkgname-$pkgver" + go build -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \-o ${pkgname} . +} + package() { - cd "${srcdir}" - install -Dm755 "./bin/${pkgname}" "$pkgdir/usr/bin/${pkgname}" - install -Dm644 "src/gitlab.com/shackra/${pkgname}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" + cd "$pkgname-$pkgver" + install -Dm755 "${pkgname}" "$pkgdir/usr/bin/${pkgname}" + install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" install -D -m0644 ${srcdir}/goimapnotify@.service ${pkgdir}/usr/lib/systemd/user/goimapnotify@.service } |