[arch-commits] Commit in nawk/trunk (PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Tue Jan 25 07:20:47 UTC 2022


    Date: Tuesday, January 25, 2022 @ 07:20:46
  Author: alerque
Revision: 1115179

upgpkg: nawk 20220122-1

Modified:
  nawk/trunk/PKGBUILD

----------+
 PKGBUILD |   57 +++++++++++++++++++++++----------------------------------
 1 file changed, 23 insertions(+), 34 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-25 07:20:25 UTC (rev 1115178)
+++ PKGBUILD	2022-01-25 07:20:46 UTC (rev 1115179)
@@ -1,44 +1,34 @@
-# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Dave Reisner <dreisner at archlinux.org>
 
 pkgname=nawk
-pkgver=20180827
-pkgrel=2
-pkgdesc="The one, true implementation of AWK"
-url="https://github.com/onetrueawk/awk"
-license=('custom')
-arch=('x86_64')
-options=('!makeflags')
-depends=('glibc')
-makedepends=('git')
-source=(git+https://github.com/onetrueawk/awk#tag=$pkgver
+_pkgname=awk
+pkgver=20220122
+pkgrel=1
+pkgdesc='The one, true implementation of AWK'
+url="https://github.com/onetrueawk/$_pkgname"
+license=(custom)
+arch=(x86_64)
+options=(!makeflags)
+depends=(glibc)
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/refs/tags/$pkgver/$_archive.tar.gz"
         'manpage-naming.patch')
-md5sums=('SKIP'
-         '5413692140f8366f8ae6bcecc9a40f2f')
+sha256sums=('720a06ff8dcc12686a5176e8a4c74b1295753df816e38468a6cf077562d54042'
+            'fa1bade363896033a50fbdadc8fa2f490f85a044d11afcd537f317067c70d3b5')
 
-pkgver() {
-  cd awk
-
-  git describe --tags
-}
-
 prepare() {
-  cd awk
-
-  # awk -> nawk
-  patch -Np1 <"$srcdir"/manpage-naming.patch
-
-  bsdtar xf awktest.tar
+  cd "$_archive"
+  patch -Np1 < "../${source[1]}"
 }
 
 check() {
-  cd awk
-
+  cd "$_archive"
   ./REGRESS
 }
 
 build() {
-  cd awk
-
+  cd "$_archive"
   # the final linking step doesn't honor LDFLAGS, so let's just throw it all
   # together into CFLAGS.
   make \
@@ -47,9 +37,8 @@
 }
 
 package() {
-  cd awk
-
-  install -Dm755 a.out "$pkgdir/usr/bin/nawk"
-  install -Dm644 awk.1 "$pkgdir/usr/share/man/man1/nawk.1"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/nawk/LICENSE"
+  cd "$_archive"
+  install -Dm0755 a.out "$pkgdir/usr/bin/$pkgname"
+  install -Dm0644 $_pkgname.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
+  install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
 }



More information about the arch-commits mailing list