[arch-commits] Commit in miller/repos/community-x86_64 (PKGBUILD PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Mon Jan 10 06:21:45 UTC 2022


    Date: Monday, January 10, 2022 @ 06:21:45
  Author: grawlinson
Revision: 1098985

archrelease: copy trunk to community-x86_64

Added:
  miller/repos/community-x86_64/PKGBUILD
    (from rev 1098984, miller/trunk/PKGBUILD)
Deleted:
  miller/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   99 ++++++++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 65 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-10 06:20:59 UTC (rev 1098984)
+++ PKGBUILD	2022-01-10 06:21:45 UTC (rev 1098985)
@@ -1,34 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-
-pkgname=miller
-pkgver=5.10.3
-pkgrel=1
-pkgdesc="Name-indexed data processing tool"
-arch=('x86_64')
-url="https://github.com/johnkerl/miller"
-license=('BSD')
-depends=('glibc')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-b2sums=('5b5bf8d2e3149ae7afb5afc9154e4e06ef77cbf8dfe1a1752df4ada184f46b141dc431d5ec547f24574a5a099ee36809cfdc23984cd0ca88147c2b4b6f5a9e4a')
-
-build() {
-  cd "$pkgname-$pkgver"
-  ./configure --prefix=/usr
-  make
-}
-
-check() {
-  cd "$pkgname-$pkgver"
-  make -k check
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-  make DESTDIR="$pkgdir" install
-
-  # documentation
-  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-
-  # license
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
-}

Copied: miller/repos/community-x86_64/PKGBUILD (from rev 1098984, miller/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-10 06:21:45 UTC (rev 1098985)
@@ -0,0 +1,65 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+
+pkgname=miller
+pkgver=6.0.0
+pkgrel=1
+pkgdesc="Name-indexed data processing tool"
+arch=('x86_64')
+url="https://github.com/johnkerl/miller"
+license=('BSD')
+depends=('glibc')
+makedepends=('go' 'git')
+options=('!lto')
+_commit='8346d332a216f377731e2dcaa2c7902c391dd91b' # v6.0.0
+source=("$pkgname::git+$url#commit=$_commit")
+md5sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+  git describe --tags | sed "s/^v//"
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # download dependencies
+  go mod download
+}
+
+build() {
+  cd "$pkgname"
+
+  # set Go flags
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+
+  go build -v \
+    -trimpath \
+    -buildmode=pie \
+    -mod=readonly \
+    -modcacherw \
+    -ldflags "-linkmode external -extldflags ${LDFLAGS}" \
+    ./cmd/mlr
+}
+
+check() {
+  cd "$pkgname"
+
+  go test -v ./internal/pkg/...
+  go test -v ./regression_test.go
+}
+
+package() {
+  cd "$pkgname"
+
+  # binary
+  install -vDm755 -t "$pkgdir/usr/bin" mlr
+
+  # documentation
+  install -vDm644 -t "$pkgdir/usr/share/man/man1" man/mlr.1
+  install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+
+  # license
+  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
+}



More information about the arch-commits mailing list