diff options
author | Thorben Günther | 2020-06-19 21:28:11 +0200 |
---|---|---|
committer | Thorben Günther | 2020-06-19 21:28:11 +0200 |
commit | 12a148a6a841c9b3a974dda3f3adeed197ee40d3 (patch) | |
tree | 76556aa7ae1066662fdf5847d77132068ad1e8be | |
download | aur-12a148a6a841c9b3a974dda3f3adeed197ee40d3.tar.gz |
Initial upload: chronic 1.0.11-1
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..80fb1b0c48d0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = chronic + pkgdesc = Filters out standard output for cron emails. + pkgver = 1.0.11 + pkgrel = 1 + url = https://github.com/docwhat/chronic + arch = x86_64 + license = MIT + makedepends = go + source = chronic-1.0.11.tar.gz::https://github.com/docwhat/chronic/archive/v1.0.11.tar.gz + sha256sums = 9e0a50086f15d32c68cdafa22919f088813b64bd4890e667a7c08ed7ba7dce1c + +pkgname = chronic + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..777ad36da5ea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Thorben Günther <echo YWRtaW5AeGVucm94Lm5ldAo= | base64 -d> + +pkgname=chronic +pkgver=1.0.11 +pkgrel=1 +pkgdesc='Filters out standard output for cron emails.' +arch=('x86_64') +url='https://github.com/docwhat/chronic' +license=('MIT') +makedepends=('go') +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('9e0a50086f15d32c68cdafa22919f088813b64bd4890e667a7c08ed7ba7dce1c') + +build() { + cd "$srcdir/$pkgname-$pkgver" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build -o chronic +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + install -Dm755 chronic "$pkgdir/usr/bin/chronic" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |