diff --git a/nawk/trunk/PKGBUILD b/nawk/trunk/PKGBUILD index 14775bcf62..cbff2ae2f3 100644 --- a/nawk/trunk/PKGBUILD +++ b/nawk/trunk/PKGBUILD @@ -2,33 +2,33 @@ # Contributor: Dave Reisner pkgname=nawk -_pkgname=awk -pkgver=20220122 +pkgver=20220831 +_commit=(30791e0f686010b39c1ab2121df85da180960d53) 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') 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 +37,8 @@ build() { } 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 }