Created
February 25, 2015 11:47
-
-
Save lubosz/cd3c20cee34bb18b86a3 to your computer and use it in GitHub Desktop.
atk-git PKGBUILD: fix pkgver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: polterge|st | |
# Contributor: Lubosz Sarnecki <lubosz@gmail.com> | |
pkgname=atk-git | |
pkgver=2.15.4.5.g8c54232.8c54232 | |
pkgrel=1 | |
pkgdesc="A library providing a set of interfaces for accessibility. Git version." | |
arch=("i686" "x86_64") | |
url="http://www.gnome.org" | |
license=('LGPL') | |
depends=('glib2') | |
makedepends=('gobject-introspection' 'gnome-common-git') | |
options=('!libtool') | |
provides=('atk') | |
conflicts=('atk') | |
_gitname="atk" | |
source=('git://git.gnome.org/atk') | |
md5sums=('SKIP') | |
pkgver() { | |
cd $_gitname | |
echo $(git describe --always | sed 's/ATK_//g' | sed 's/_/./g' | sed 's/-/./g').$(git log --pretty=format:'%h' -n 1) | |
} | |
build() { | |
cd $_gitname | |
sed -i -e '/AC_PATH_XTRA/d' configure.ac | |
# autoreconf --force --install | |
./autogen.sh --prefix=/usr --sysconfdir=/etc \ | |
--disable-schemas-compile | |
make | |
} | |
package() { | |
cd $_gitname | |
make DESTDIR="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment