Commit b8c00623 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/fontconfig: modernize and build fix

we force regeneration of hash functions
parent 821c7b53
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment