[arch-commits] Commit in direnv/repos/community-x86_64 (PKGBUILD PKGBUILD)
George Rawlinson
grawlinson at gemini.archlinux.org
Tue Dec 28 23:26:16 UTC 2021
Date: Tuesday, December 28, 2021 @ 23:26:16
Author: grawlinson
Revision: 1086520
archrelease: copy trunk to community-x86_64
Added:
direnv/repos/community-x86_64/PKGBUILD
(from rev 1086519, direnv/trunk/PKGBUILD)
Deleted:
direnv/repos/community-x86_64/PKGBUILD
----------+
PKGBUILD | 148 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 74 insertions(+), 74 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-28 23:25:55 UTC (rev 1086519)
+++ PKGBUILD 2021-12-28 23:26:16 UTC (rev 1086520)
@@ -1,74 +0,0 @@
-# Maintainer: George Rawlinson <grawlinson at archlinux.org>
-# Contributor: zimbatm <zimbatm at zimbatm.com>
-# Contributor: ShadowKyogre <shadowkyogre.public+aur at gmail.com>
-# Contributor: rmorgans <rick.morgans at gmail.com>
-
-pkgname=direnv
-pkgver=2.30.1
-pkgrel=1
-pkgdesc='A shell extension that manages your environment'
-arch=('x86_64')
-url="https://direnv.net"
-license=('MIT')
-depends=('glibc')
-makedepends=('go')
-checkdepends=('zsh' 'fish' 'bash' 'tcsh' 'elvish')
-options=('!lto')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/direnv/direnv/archive/v$pkgver.tar.gz")
-sha512sums=('0db119510f5a773a4e15c32d1296080e6670d2da922f8d90b04beb6e947b19ada99593c215c1e9c3c504f21826a27f4a0666d89aa999ad87488b41f35f25a7ab')
-b2sums=('a3030e88d472091861214b251b2801b6770caddc167ec2334bdd81fdaa83ab0f5cb1c0c3ff113b44e885aff67579ae2e8c3c062a31dc49d59b11a55821960017')
-
-prepare() {
- cd "$pkgname-$pkgver"
-
- # download dependencies
- go mod download
-}
-build() {
- cd "$pkgname-$pkgver"
-
- # 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}" \
- .
-}
-
-check() {
- cd "$pkgname-$pkgver"
-
- # run go tests
- go test -v ./...
-
- # run shell-specific tests
- bash ./test/direnv-test.bash
- elvish ./test/direnv-test.elv
- fish ./test/direnv-test.fish
- tcsh -e ./test/direnv-test.tcsh
- zsh ./test/direnv-test.zsh
-
- # run stdlib tests
- ./test/stdlib.bash
-}
-
-package() {
- cd "$pkgname-$pkgver"
-
- # binary
- install -vDm755 -t "$pkgdir/usr/bin" "$pkgname"
-
- # documentation
- install -vDm644 -t "$pkgdir/usr/share/man/man1" man/*.1
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
- install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname/docs" docs/*
-
- # license
- install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
-}
Copied: direnv/repos/community-x86_64/PKGBUILD (from rev 1086519, direnv/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-28 23:26:16 UTC (rev 1086520)
@@ -0,0 +1,74 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: zimbatm <zimbatm at zimbatm.com>
+# Contributor: ShadowKyogre <shadowkyogre.public+aur at gmail.com>
+# Contributor: rmorgans <rick.morgans at gmail.com>
+
+pkgname=direnv
+pkgver=2.30.2
+pkgrel=1
+pkgdesc='A shell extension that manages your environment'
+arch=('x86_64')
+url="https://direnv.net"
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+checkdepends=('zsh' 'fish' 'bash' 'tcsh' 'elvish')
+options=('!lto')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/direnv/direnv/archive/v$pkgver.tar.gz")
+sha512sums=('e96864919f2b3ffaf538ea3639bf85f157f40d61fa557d07f1e34f46c058858d972636db021ac93a6ccbdd28bc28f51cc85d1d0cac5ffb1e8861521b7383f362')
+b2sums=('fc1fe404712a6ee6fb6e022fd2dbc4f254ad5709c8b4037b895507e27974ce8c106be879b8b4fa173a3a718681817e654bb4305f75180758e96c99caac0df2a5')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ # download dependencies
+ go mod download
+}
+build() {
+ cd "$pkgname-$pkgver"
+
+ # 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}" \
+ .
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+
+ # run go tests
+ go test -v ./...
+
+ # run shell-specific tests
+ bash ./test/direnv-test.bash
+ elvish ./test/direnv-test.elv
+ fish ./test/direnv-test.fish
+ tcsh -e ./test/direnv-test.tcsh
+ zsh ./test/direnv-test.zsh
+
+ # run stdlib tests
+ ./test/stdlib.bash
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ # binary
+ install -vDm755 -t "$pkgdir/usr/bin" "$pkgname"
+
+ # documentation
+ install -vDm644 -t "$pkgdir/usr/share/man/man1" man/*.1
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
+ install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname/docs" docs/*
+
+ # license
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
+}
More information about the arch-commits
mailing list