diff options
author | aulonsal | 2021-05-12 06:04:45 +0530 |
---|---|---|
committer | aulonsal | 2021-05-12 06:04:45 +0530 |
commit | 4280ea2d4fbdc2727f93396fe84c8e0f8aef4604 (patch) | |
tree | d4239a6a972b6b82c928d58462d79905667f3aa8 | |
parent | 6647301a1df71519356a42be86b5aab20d9e5d89 (diff) | |
download | aur-4280ea2d4fbdc2727f93396fe84c8e0f8aef4604.tar.gz |
upgpkg: tt 0.4.0-3 Make exported variables local to the build function and make cd relative to srcdir
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -19,18 +19,18 @@ source=("$pkgname-$pkgver::git+$url/#commit=$_gitcommit") b2sums=('SKIP') build() { - export CGO_CPPFLAGS="${CPPFLAGS}" - export CGO_CFLAGS="${CFLAGS}" - export CGO_CXXFLAGS="${CXXFLAGS}" - export CGO_LDFLAGS="${LDFLAGS}" - export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + export local CGO_CPPFLAGS="${CPPFLAGS}" + export local CGO_CFLAGS="${CFLAGS}" + export local CGO_CXXFLAGS="${CXXFLAGS}" + export local CGO_LDFLAGS="${LDFLAGS}" + export local GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" make all } package() { - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" install -Dm755 bin/tt -t "$pkgdir/usr/bin" install -Dm644 tt.1.gz -t "$pkgdir/usr/share/man/man1" |