Add communitytags-git

This commit is contained in:
Ian D. Scott 2015-01-17 15:47:20 -08:00
commit de9c71d87f
2 changed files with 42 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = communitytags-git
pkgdesc = Community provided tags for packages.
pkgver = r39.cf8b6b1
pkgrel = 1
url = https://github.com/ids1024/archcommunitytags-tools
arch = any
license = GPL
makedepends = git
depends = python
depends = pyalpm
depends = python-pyparsing
source = git://github.com/ids1024/archcommunitytags-tools.git
md5sums = SKIP
pkgname = communitytags-git

26
PKGBUILD Normal file
View file

@ -0,0 +1,26 @@
# Maintainer: Ian D, Scott <ian@perebruin.com>
pkgname=communitytags-git
pkgver=r39.cf8b6b1
pkgrel=1
pkgdesc="Community provided tags for packages."
arch=('any')
url="https://github.com/ids1024/archcommunitytags-tools"
license=('GPL')
makedepends=('git')
depends=('python' 'pyalpm' 'python-pyparsing')
source=('git://github.com/ids1024/archcommunitytags-tools.git')
md5sums=('SKIP')
_gitname="archcommunitytags-tools"
pkgver() {
cd "$srcdir/$_gitname"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "$srcdir/$_gitname"
python setup.py install --root="$pkgdir"
}