summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b20923bdd27af9863a0bc6da9e38e8806a1bf77 (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
pkgname=voms
pkgver=2.0.13
pkgrel=1
arch=(i686 x86_64)
url="http://italiangrid.github.io/voms/"
depends=(expat gsoap openssl)
_gitrev="67eab8a269d99480f81af182ef09b2864d7147eb"
source=("git+https://github.com/italiangrid/voms#commit=$_gitrev")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --tags | sed 's/^v//; s/-/.r/; s/-/./g'
}

prepare() {
  cd "$pkgname"
  NOCONFIGURE=1 ./autogen.sh
}

build() {
  cd "$pkgname"
  export GSOAP_SSL_PP_CFLAGS="$(pkg-config --cflags gsoapssl++ zlib)"
  export GSOAP_SSL_PP_LIBS="$(pkg-config --libs gsoapssl++ zlib)"
  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

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

# vim: ft=sh:ts=2:sw=2:et