Date: Tuesday, October 4, 2022 @ 02:17:43 Author: blakkheim Revision: 1320858
upgpkg: nawk 20220912-1 Modified: nawk/trunk/PKGBUILD ----------+ PKGBUILD | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-10-04 02:14:46 UTC (rev 1320857) +++ PKGBUILD 2022-10-04 02:17:43 UTC (rev 1320858) @@ -1,34 +1,40 @@ # Maintainer: Caleb Maclennan <[email protected]> +# Maintainer: T.J. Townsend <[email protected]> # Contributor: Dave Reisner <[email protected]> pkgname=nawk -_pkgname=awk -pkgver=20220122 +pkgver=20220912 +_commit=(9e248c317b88470fc86aa7c988919dc49452c88c) # master pkgrel=1 pkgdesc='The one, true implementation of AWK' -url="https://github.com/onetrueawk/$_pkgname" +url="https://github.com/onetrueawk/awk" license=(custom) arch=(x86_64) options=(!makeflags) depends=(glibc) -_archive="$_pkgname-$pkgver" -source=("$url/archive/refs/tags/$pkgver/$_archive.tar.gz" +makedepends=(git) +source=("git+https://github.com/onetrueawk/awk.git#commit=${_commit}" 'manpage-naming.patch') -sha256sums=('720a06ff8dcc12686a5176e8a4c74b1295753df816e38468a6cf077562d54042' +sha256sums=('SKIP' 'fa1bade363896033a50fbdadc8fa2f490f85a044d11afcd537f317067c70d3b5') +pkgver() { + cd awk + git log -n1 --pretty='format:%cd' --date=format:'%Y%m%d' ${_commit} +} + prepare() { - cd "$_archive" + cd awk patch -Np1 < "../${source[1]}" } check() { - cd "$_archive" + cd awk ./REGRESS } build() { - cd "$_archive" + cd awk # the final linking step doesn't honor LDFLAGS, so let's just throw it all # together into CFLAGS. make \ @@ -37,8 +43,8 @@ } package() { - cd "$_archive" + cd awk install -Dm0755 a.out "$pkgdir/usr/bin/$pkgname" - install -Dm0644 $_pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1" + install -Dm0644 awk.1 "$pkgdir/usr/share/man/man1/$pkgname.1" install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE }
