summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8db2e54dd6df0c5f82aa9c9c5c4e1364e9feb094 (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
# Maintainer: Piotr Gorski <lucjan.lucjanov@gmail.com>
# Contributor: Bartlomiej Piotrowski <nospam@bpiotrowski.pl>

pkgname=pkgconf-git
pkgver=1.0.1.27.ga05cc65
pkgrel=1
pkgdesc='pkg-config compatible utility which does not depend on glib'
url='https://github.com/pkgconf/pkgconf'
arch=('i686' 'x86_64')
license=('ISC')
makedepends=('popt' 'git')
conflicts=('pkg-config' 'pkgconfig' 'pkgconf')
provides=('pkg-config' 'pkgconfig' 'pkgconf')
replaces=('pkg-config' 'pkgconfig' 'pkgconf')
source=(git://github.com/pkgconf/pkgconf.git)
md5sums=('SKIP')

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

build() {                                                                       
  cd pkgconf
  ./autogen.sh
  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info \
    --localstatedir=/var
  make
}

package() {
  cd pkgconf
  make DESTDIR="$pkgdir" install
  ln -s /usr/bin/pkgconf "$pkgdir"/usr/bin/pkg-config
}