summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 965fadc10fbdd1c092ea0f40aee31f0e82fb2e90 (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
35
36
37
38
39
# Maintainer: Daniel M. Capella <polyzen@archlinux.info>
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>

pkgname=pacman-contrib-git
pkgver=r26.8effb41
pkgrel=1
pkgdesc='pacman contributions (Git version)'
url=https://git.archlinux.org/pacman-contrib.git
arch=('i686' 'x86_64')
arch=('any')
license=('GPL')
depends=('pacman-git') # change to 'pacman' after release 5.0.2
source=("git+$url")
sha512sums=('SKIP')

pkgver() {
  cd ${pkgname%-*}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${pkgname%-*}
  ./autogen.sh
  ./configure --prefix=/usr --sysconfdir=/etc \
    --localstatedir=/var --enable-git-version \
    --with-vim-dir=/usr/share/vim/vimfiles
  make V=1
}

check() {
  make -C ${pkgname%-*} check
}

package() {
  cd ${pkgname%-*}
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: