summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSteven Allen2021-05-28 08:46:48 -0700
committerSteven Allen2021-05-28 08:46:48 -0700
commitd1e166e9cab7a3bcf8d0f73d4d2c2712ed83fbfe (patch)
tree91958a66ff3dd6700c37f83c86b91a2e7047bff5 /PKGBUILD
parent8229d801399fcf32218c93afc56b5e7e46ab4c49 (diff)
downloadaur-localtime-git.tar.gz
update
- and set flags - and ensure we rebuild with latest go
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 16 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 515485fed71..db89f18b87e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Steven Allen <steven@stebalien.com>
pkgname=localtime-git
-pkgver=r38.c166204
-pkgrel=1
+pkgver=r44.541590b
+pkgrel=2
pkgdesc="Automatic Timezone Updater"
arch=('any')
url="http://stebalien.com/projects/localtime/"
@@ -14,20 +14,25 @@ source=("git+https://github.com/Stebalien/localtime.git")
md5sums=('SKIP')
pkgver() {
- cd "$srcdir/${pkgname%-git}"
- echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+ cd "$srcdir/${pkgname%-git}"
+ echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/${pkgname%-git}"
- make PREFIX=/usr DESTDIR="$pkgdir"
+ cd "$srcdir/${pkgname%-git}"
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+ export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
+ make PREFIX=/usr DESTDIR="$pkgdir"
}
package() {
- cd "$srcdir/${pkgname%-git}"
- make PREFIX=/usr DESTDIR="$pkgdir" install
+ cd "$srcdir/${pkgname%-git}"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
- # Fix permissions
- chmod -R u=rwX,g=rX,o=- "$pkgdir/usr/share/polkit-1/rules.d/"
- chgrp -R polkitd "$pkgdir/usr/share/polkit-1/rules.d/"
+ # Fix permissions
+ chmod -R u=rwX,g=rX,o=- "$pkgdir/usr/share/polkit-1/rules.d/"
+ chgrp -R polkitd "$pkgdir/usr/share/polkit-1/rules.d/"
}