summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Smith2019-05-02 15:43:33 -0600
committerAdrien Smith2019-05-04 12:23:01 -0600
commite105d12575e0553316b422720cceaf6b7a324dac (patch)
tree316a92b6db258a1494c6ac74925f3bd91ceb5070
parenta8fc2e78a618b222ed2b7eb84d85ebfa369455a7 (diff)
downloadaur-e105d12575e0553316b422720cceaf6b7a324dac.tar.gz
Make a few more improvements
-rw-r--r--PKGBUILD9
-rw-r--r--README.md8
2 files changed, 5 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 43feb867b2f..da153710fd1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,22 +16,23 @@ _gopackagepath=github.com/direnv/direnv
prepare() {
[[ -f /etc/profile.d/go.sh ]] && source /etc/profile.d/go.sh
- export GOPATH=$srcdir/go
+ export GOPATH="$srcdir/go"
mkdir -p "$GOPATH/src/$(dirname "$_gopackagepath")"
mv "$srcdir/$pkgname-$pkgver" "$GOPATH/src/$_gopackagepath"
}
build() {
- export GOPATH=$srcdir/go
+ export GOPATH="$srcdir/go"
cd "$GOPATH/src/$_gopackagepath"
make
}
package() {
- export GOPATH=$srcdir/go
+ export GOPATH="$srcdir/go"
cd "$GOPATH/src/$_gopackagepath"
- make install DESTDIR=$pkgdir/usr
+ make install DESTDIR="$pkgdir/usr"
+ install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
# vim:set ts=2 sw=2 et:
diff --git a/README.md b/README.md
index f8122822cc5..c85ae428c3d 100644
--- a/README.md
+++ b/README.md
@@ -36,11 +36,3 @@ git clone ssh://aur@aur.archlinux.org/direnv.git direnv-archlinux
cd direnv-archlinux
git remote set-url --add github https://github.com/direnv/direnv-archlinux.git
```
-
-## Another way...
-
-```bash
-bash -c "updpkgsums && makepkg --printsrcinfo > .SRCINFO"
-git push aur
-git push github
-```