diff options
author | Chris P | 2015-09-22 18:08:53 +0200 |
---|---|---|
committer | Chris P | 2015-09-22 18:08:53 +0200 |
commit | 285b8cd9dd9aa372f19be8eb48d97d77963bec31 (patch) | |
tree | f181879df0333f349245aba76068ef07956ed216 /PKGBUILD | |
parent | 15d0259659b9c8296b193bd68630dd2311ebc269 (diff) | |
download | aur-285b8cd9dd9aa372f19be8eb48d97d77963bec31.tar.gz |
Add conflict('rmlint') and use a more sane pkgver()
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3,26 +3,26 @@ _pkgname=rmlint pkgname=${_pkgname}-git -pkgver=967.812a5d5 -pkgrel=3 +pkgver=v2.2.0.r33.g08a75ed +pkgrel=1 pkgdesc="Tool to remove duplicates and other lint, being much faster than fdupes" arch=('i686' 'x86_64') url="https://github.com/sahib/rmlint" license=('GPL3') -depends=('glibc' 'glib2>=2.31' 'libutil-linux' 'elfutils') +depends=('glibc' 'glib2>=2.31' 'libutil-linux' 'elfutils' 'gettext' 'json-glib') makedepends=('git' 'scons' 'python-sphinx') +conflicts=("${_pkgname}") provides=("$_pkgname") source=("$pkgname"::"git+https://github.com/sahib/${_pkgname}.git") md5sums=('SKIP') pkgver() { cd "${srcdir}/${pkgname}" - printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git describe --long | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cd "${srcdir}/${pkgname}" - scons config scons -j4 DEBUG=1 --prefix=${pkgdir}/usr --actual-prefix=/usr } |