diff options
author | Daniel M. Capella | 2016-11-09 18:14:15 -0500 |
---|---|---|
committer | Daniel M. Capella | 2016-11-09 18:14:15 -0500 |
commit | 38322ed50e3d956629a606b9d104fad0a50e4050 (patch) | |
tree | edde574cfa544537836a0a6029f76db141f2e006 | |
parent | 1c5301512dfd8dcb8760ab2101466b718b176d3d (diff) | |
download | aur-38322ed50e3d956629a606b9d104fad0a50e4050.tar.gz |
Minor touch up
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -2,27 +2,27 @@ # Maintainer: Johannes Löthberg <johannes@kyriasis.com> pkgname=pacman-contrib-git +_gitname=pacman-contrib pkgver=0.0.1.r8.g86adc7b pkgrel=1 pkgdesc='pacman contributions (Git version)' -url=https://git.archlinux.org/pacman-contrib.git +url=https://git.archlinux.org/$_gitname.git arch=('i686' 'x86_64') -arch=('any') license=('GPL') -depends=('pacman-git') # Change to 'pacman' after release 5.0.2 +depends=('pacman-git') # Change to 'pacman' after its next release makedepends=('asciidoc' 'git') -provides=('pacman-contrib') -replaces=('pacman-contrib') +provides=("$_gitname") +replaces=("$_gitname") source=("git+$url") sha512sums=('SKIP') pkgver() { - cd ${pkgname%-*} + cd $_gitname git describe --long --tags | sed -r 's/^v//; s/([^-]*-g)/r\1/; s/-/./g' } build() { - cd ${pkgname%-*} + cd $_gitname ./autogen.sh ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --enable-git-version \ @@ -31,11 +31,11 @@ build() { } check() { - make -C ${pkgname%-*} check + make -C $_gitname check } package() { - cd ${pkgname%-*} + cd $_gitname make DESTDIR="$pkgdir" install } |