diff options
author | Albert Westra | 2017-07-14 10:35:10 -0700 |
---|---|---|
committer | Albert Westra | 2017-07-14 10:35:10 -0700 |
commit | 120876d3748f701b3748fb3aab7060abfec4581b (patch) | |
tree | e45dc4af55021786cfe4bf45d655fd505cbc4e57 | |
parent | 009bb54a3bdd83f90211b2e3035d83ccb0f4c3de (diff) | |
download | aur-120876d3748f701b3748fb3aab7060abfec4581b.tar.gz |
Update Versioning
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 15 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = libmypaint-git pkgdesc = A library for making brushstrokes which is used by MyPaint and other projects. - pkgver = 2.0.0.alpha+git.1672d09 + pkgver = 2.0.0.alpha.r777.831b2a0 pkgrel = 1 url = http://mypaint.org/ arch = i686 @@ -11,7 +11,7 @@ pkgbase = libmypaint-git makedepends = python depends = gobject-introspection depends = json-c - provides = libmypaint=2.0.0.alpha+git.1672d09 + provides = libmypaint=2.0.0.alpha conflicts = libmypaint source = git+https://github.com/mypaint/libmypaint.git md5sums = SKIP @@ -3,7 +3,7 @@ _basever=2.0.0.alpha pkgname=libmypaint-git -pkgver=2.0.0.alpha+git.831b2a0 +pkgver=2.0.0.alpha.r777.831b2a0 pkgrel=1 pkgdesc="A library for making brushstrokes which is used by MyPaint and other projects." arch=('i686' 'x86_64') @@ -11,11 +11,22 @@ url="http://mypaint.org/" license=('ISC') depends=('gobject-introspection' 'json-c') makedepends=('git' 'intltool' 'python') -provides=("libmypaint=${pkgver}") +provides=("libmypaint=${_basever}") conflicts=('libmypaint') source=('git+https://github.com/mypaint/libmypaint.git') md5sums=('SKIP') +pkgver() { + cd "$srcdir/libmypaint" + + printf "${_basever}.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed 's/^v//g;s/-/./g' +} + +prepare() { + cd "${srcdir}/libmypaint" + +} + build() { cd "$srcdir/libmypaint" @@ -31,10 +42,4 @@ package() { install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -pkgver() { - cd "$srcdir/libmypaint" - - printf "${_basever}+git.%s" "$(git rev-parse --short HEAD)" | sed 's/^v//g;s/-/./g' -} - # vim:set ts=2 sw=2 et: |