Skip to content

Instantly share code, notes, and snippets.

@starnostar starnostar/PKGBUILD
Created Dec 19, 2014

Embed
What would you like to do?
package-query-git 1.4-2
# Maintainer: tuxce <tuxce.net@gmail.com>
pkgname=package-query-git
pkgver=1.4
pkgrel=2
pkgdesc="Query ALPM and AUR"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h' 'arm')
url="http://github.com/archlinuxfr/package-query"
license=('GPL')
depends=('pacman>=4.1' curl 'yajl>=2.0')
makedepends=('git')
conflicts=('package-query')
provides=('package-query=1.4')
source=('git+https://github.com/archlinuxfr/package-query.git')
md5sums=('SKIP')
_gitname=package-query
pkgver () {
cd $_gitname
echo $(git describe --always | sed 's/-/./g')
}
build() {
rm $_gitname/ltmain.sh
ln -s /usr/share/libtool/build-aux/ltmain.sh $_gitname/ltmain.sh
cd $_gitname
./autogen.sh
./configure --localstatedir=/var --prefix=/usr \
--sysconfdir=/etc --with-aur-url=https://aur.archlinux.org
make
}
package () {
cd $_gitname
make DESTDIR=$pkgdir install
}
# vim:set ts=4 sw=4 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.