diff options
author | Tinh Truong | 2018-09-05 22:02:57 +1000 |
---|---|---|
committer | Tinh Truong | 2018-09-05 22:03:44 +1000 |
commit | d1064a95c55fb8b991efe901795530f68bdc56b2 (patch) | |
tree | 4536e1344a7b449bbbe1f76de37e2b1802fd88ee | |
parent | a2faed679729953b1867ccae41308c0e52f0463a (diff) | |
download | aur-d1064a95c55fb8b991efe901795530f68bdc56b2.tar.gz |
Surrounded pkgdir and srcdir with double quote
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 7 insertions, 5 deletions
@@ -1,7 +1,7 @@ pkgbase = aur-pkg-status pkgdesc = A small utility to check the status of the AUR packages installed on your ArchLinux machine pkgver = 0.1.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/tinhtruong/aur-pkg-status/ arch = i686 arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Tinh Truong <xuantinh at gmail dot com> pkgname=aur-pkg-status pkgver=0.1.0 -pkgrel=2 +pkgrel=3 pkgdesc="A small utility to check the status of the AUR packages installed on your ArchLinux machine" arch=('i686' 'x86_64') license=('MIT') @@ -14,13 +14,15 @@ makedepends=('go') depends=('pacman') build() { - cd $srcdir/aur-pkg-status-${pkgver} + cd "$srcdir"/aur-pkg-status-${pkgver} export GOPATH=`pwd`:`pwd`/vendor cd src/github.com/tinhtruong/aur-pkg-status go build } package() { - install -d "${pkgdir}/usr/bin" - cp $srcdir/aur-pkg-status-${pkgver}/src/github.com/tinhtruong/aur-pkg-status/aur-pkg-status "${pkgdir}/usr/bin/aur-pkg-status" + install -d "${pkgdir}"/opt/aur-pkg-status + cp "$srcdir"/aur-pkg-status-${pkgver}/src/github.com/tinhtruong/aur-pkg-status/aur-pkg-status "${pkgdir}"/opt/aur-pkg-status/aur-pkg-status + cp "$srcdir"/aur-pkg-status-${pkgver}/LICENSE "${pkgdir}"/opt/aur-pkg-status/LICENSE + ln -s ../../opt/aur-pkg-status/aur-pkg-status "$pkgdir"/usr/bin/aur-pkg-status } |