[arch-commits] Commit in peco/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Fri Apr 29 02:01:58 UTC 2022
Date: Friday, April 29, 2022 @ 02:01:57
Author: grawlinson
Revision: 1191739
archrelease: copy trunk to community-x86_64
Added:
peco/repos/community-x86_64/PKGBUILD
(from rev 1191738, peco/trunk/PKGBUILD)
Deleted:
peco/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 115 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 66 insertions(+), 49 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-04-29 02:01:22 UTC (rev 1191738)
+++ PKGBUILD 2022-04-29 02:01:57 UTC (rev 1191739)
@@ -1,49 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: Morteza NourelahiAlamdari <m at 0t1.me>
-# Contributor: Samuel Walladge <aur at swalladge dot net>
-
-pkgname=peco
-pkgver=0.5.10
-pkgrel=3
-pkgdesc='Simplistic interactive filtering tool'
-arch=('x86_64')
-url='https://github.com/peco/peco'
-license=('MIT')
-makedepends=('go')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-b2sums=('927039707f36bb285aefccecbf1643d2728f7e90deb2f46793ff2d0b1c60d6d71a0d89c13132d6e8901257ca1b726cee36b64e6160230b5aa6e5b84e22f25c3d')
-
-prepare() {
- cd "$pkgname-$pkgver"
- mkdir -p build
-}
-build() {
- cd "$pkgname-$pkgver"
- export CGO_CPPFLAGS="${CPPFLAGS}"
- export CGO_CFLAGS="${CFLAGS}"
- export CGO_CXXFLAGS="${CXXFLAGS}"
- export CGO_LDFLAGS="${LDFLAGS}"
-
- go build -v \
- -trimpath \
- -buildmode=pie \
- -mod=readonly \
- -modcacherw \
- -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
- -o build ./cmd/...
-}
-
-package() {
- cd "$pkgname-$pkgver"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/bin" "build/$pkgname"
-
- # license
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
-}
-
-# vim:set ts=2 sw=2 et:
Copied: peco/repos/community-x86_64/PKGBUILD (from rev 1191738, peco/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-04-29 02:01:57 UTC (rev 1191739)
@@ -0,0 +1,66 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Morteza NourelahiAlamdari <m at 0t1.me>
+# Contributor: Samuel Walladge <aur at swalladge dot net>
+
+pkgname=peco
+pkgver=0.5.10
+pkgrel=4
+pkgdesc='Simplistic interactive filtering tool'
+arch=('x86_64')
+url='https://github.com/peco/peco'
+license=('MIT')
+depends=('glibc')
+makedepends=('git' 'go')
+options=('!lto')
+_commit='27cc9100926f7d20ca3efbc1b49d116ef9e90a99'
+source=("$pkgname::git+$url#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd "$pkgname"
+
+ # create directory for build output
+ mkdir build
+
+ # download dependencies
+ go mod download
+}
+build() {
+ cd "$pkgname"
+
+ # set Go flags
+ export CGO_CPPFLAGS="${CPPFLAGS}"
+ export CGO_CFLAGS="${CFLAGS}"
+ export CGO_CXXFLAGS="${CXXFLAGS}"
+ export CGO_LDFLAGS="${LDFLAGS}"
+
+ go build -v \
+ -trimpath \
+ -buildmode=pie \
+ -mod=readonly \
+ -modcacherw \
+ -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
+ -o build \
+ ./cmd/...
+}
+
+package() {
+ cd "$pkgname"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" "build/$pkgname"
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list