diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-12 19:41:32 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-12 19:41:32 +0000 |
commit | b8c00623c95b1004050432f513267f6a8d3d8302 (patch) | |
tree | 6ad9d9a1c7adb8bd3b02012637751f0770315a39 /main/fontconfig/APKBUILD | |
parent | 821c7b53780ff699c73669e6e500b5fb2f92c0d2 (diff) | |
download | aports-b8c00623c95b1004050432f513267f6a8d3d8302.tar.bz2 aports-b8c00623c95b1004050432f513267f6a8d3d8302.tar.xz |
main/fontconfig: modernize and build fix
we force regeneration of hash functions
Diffstat (limited to 'main/fontconfig/APKBUILD')
-rw-r--r-- | main/fontconfig/APKBUILD | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/main/fontconfig/APKBUILD b/main/fontconfig/APKBUILD index 9b0c7a81bf..2cf7ec40de 100644 --- a/main/fontconfig/APKBUILD +++ b/main/fontconfig/APKBUILD @@ -9,25 +9,18 @@ arch="all" license="GPL" depends= depends_dev="" -makedepends="$depends_dev freetype-dev expat-dev python2-dev" +makedepends="$depends_dev freetype-dev expat-dev python2-dev gperf" install= triggers="$pkgname.trigger=/usr/share/fonts/*" subpackages="$pkgname-doc $pkgname-dev" source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz" -_builddir="$srcdir/$pkgname-$pkgver" -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" + # regenerate hash functions + rm -f src/fcobjshash.h ./configure \ --build=$CBUILD \ @@ -41,7 +34,7 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" make -j1 DESTDIR="$pkgdir" install || return 1 install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING |