summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b0cf951c0ae5311d3fee4bc1e0d918a5900309eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: tuxce <tuxce.net@gmail.com>
# Maintainer: Igor <f2404@yandex.ru>
pkgname=package-query-git
pkgver=1.12.r0.g840a000
pkgrel=1
pkgdesc="Query ALPM and AUR"
arch=('i686' 'x86_64' 'mips64el' 'armv6h' 'armv7h' 'arm' 'aarch64')
url="https://github.com/archlinuxfr/package-query"
license=('GPL')
depends=('pacman>=6.0' 'yajl>=2.0')
makedepends=('git')
conflicts=('package-query')
provides=('package-query=1.12')
source=('git+https://github.com/archlinuxfr/package-query.git')
md5sums=('SKIP')
_gitname=package-query

pkgver () {
  cd "$_gitname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  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
}