| 1 | # Description: A system for managing library compile/link flags |
| 2 | # URL: http://pkgconfig.freedesktop.org/wiki/ |
| 3 | # Maintainer: CRUX System Team, core-ports at crux dot nu |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: |
| 6 | |
| 7 | name=pkg-config |
| 8 | version=0.25 |
| 9 | release=2 |
| 10 | source=(http://$name.freedesktop.org/releases/$name-$version.tar.gz |
| 11 | $name.diff |
| 12 | $name-${version}_ANSII_libraries.patch) |
| 13 | |
| 14 | build() { |
| 15 | cd $name-$version |
| 16 | |
| 17 | patch -p1 -i $SRC/$name.diff |
| 18 | patch -p1 -i $SRC/$name-${version}_ANSII_libraries.patch |
| 19 | |
| 20 | ./configure --build=$CHOST \ |
| 21 | --host=$CTARGET \ |
| 22 | --prefix=/usr \ |
| 23 | --mandir=/usr/man |
| 24 | |
| 25 | make |
| 26 | make DESTDIR=$PKG install |
| 27 | |
| 28 | rm $PKG/usr/share/doc/pkg-config/pkg-config-guide.html |
| 29 | rmdir $PKG/usr/share/doc/{pkg-config,} |
| 30 | } |