summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 58abc458a4e07a98d73f71974595bf5f0851ff59 (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
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=pkg-config-git
pkgver=0.29.2.r1.g2dd2b19
pkgrel=1
pkgdesc="Provides useful functions commonly found on BSD systems"
arch=('i686' 'x86_64')
url="https://www.freedesktop.org/wiki/Software/pkg-config/"
license=('GPL2')
depends=('glibc' 'glib2')
makedepends=('git')
provides=('pkgconfig')
conflicts=('pkgconfig')
source=("git+https://anongit.freedesktop.org/git/pkg-config.git"
        "0001-Workaround-error-m4_copy.patch")
sha256sums=('SKIP'
            '03e1c1a997590b82c0922fca86c7be5ee85d04181c6f2ce020bdbe53c7f1b47b')


prepare() {
  cd "pkg-config"

  patch -Np1 -i "$srcdir/0001-Workaround-error-m4_copy.patch"
}

pkgver() {
  cd "pkg-config"

  git describe --long --tags | sed 's/^pkg-config-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "pkg-config"

  ./autogen.sh --no-configure
  ./configure --prefix="/usr"
  make
}

check() {
  cd "pkg-config"

  make check
}

package() {
  cd "pkg-config"

  make DESTDIR="$pkgdir" install
}