Commit b8c00623 authored by Natanael Copa's avatar Natanael Copa

main/fontconfig: modernize and build fix

we force regeneration of hash functions
parent 821c7b53
...@@ -9,25 +9,18 @@ arch="all" ...@@ -9,25 +9,18 @@ arch="all"
license="GPL" license="GPL"
depends= depends=
depends_dev="" depends_dev=""
makedepends="$depends_dev freetype-dev expat-dev python2-dev" makedepends="$depends_dev freetype-dev expat-dev python2-dev gperf"
install= install=
triggers="$pkgname.trigger=/usr/share/fonts/*" triggers="$pkgname.trigger=/usr/share/fonts/*"
subpackages="$pkgname-doc $pkgname-dev" subpackages="$pkgname-doc $pkgname-dev"
source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz" source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver" 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
}
build() { build() {
cd "$_builddir" cd "$builddir"
# regenerate hash functions
rm -f src/fcobjshash.h
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
...@@ -41,7 +34,7 @@ build() { ...@@ -41,7 +34,7 @@ build() {
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1 make -j1 DESTDIR="$pkgdir" install || return 1
install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING 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