diff options
author | Daniel Bermond | 2018-06-16 10:25:53 +0000 |
---|---|---|
committer | Daniel Bermond | 2018-06-16 10:25:53 +0000 |
commit | 176dc446b923389783b460c50f88b3ca2238366c (patch) | |
tree | 622139a59a8f0e3154d6d9de3f838dcea23d0191 /PKGBUILD | |
parent | 5607ef488dfdea90732a16f5cdb7f4ce7991ce18 (diff) | |
download | aur-176dc446b923389783b460c50f88b3ca2238366c.tar.gz |
Updated to version 2.12.6-0ubuntu2
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 101 |
1 files changed, 54 insertions, 47 deletions
@@ -1,71 +1,78 @@ -# Maintainer: Det -# Contributors: Joris Steyn, Florian Dejonckheere, Tevin Zhang, Andrea Fagiani, Biru Ionut, Paul Bredbury +# Maintainer : Daniel Bermond < yahoo-com: danielbermond > +# Contributor: Det +# Contributor: Joris Steyn, Florian Dejonckheere, Tevin Zhang, Andrea Fagiani, Biru Ionut, Paul Bredbury # Installation order: freetype2 → fontconfig-ubuntu → cairo-ubuntu +_srcname=fontconfig +_ubver=0ubuntu2 + pkgname=fontconfig-ubuntu pkgver=2.12.6 -_ubver=0ubuntu1 pkgrel=1 -pkgdesc="Library for configuring and customizing font access - with Ubuntu's patches" -arch=('x86_64') -url="https://launchpad.net/ubuntu/+source/fontconfig" +pkgdesc='A library for configuring and customizing font access (with Ubuntu patches)' +arch=('i686' 'x86_64') +url='https://launchpad.net/ubuntu/+source/fontconfig' license=('custom') depends=('expat' 'freetype2') -makedepends=('python2' 'docbook2x' 'gperf') +makedepends=('autoconf-archive' 'gperf' 'python-lxml' 'python-six' 'docbook-utils' 'docbook-sgml' + 'perl-sgmls' 'texlive-formatsextra>=2017' 'lynx') +provides=("fontconfig=${pkgver}") conflicts=('fontconfig') -provides=("fontconfig=$pkgver") -options=('!libtool') -install=$pkgname.install +install="${pkgname}.install" source=("https://launchpad.net/ubuntu/+archive/primary/+files/fontconfig_$pkgver.orig.tar.bz2" "https://launchpad.net/ubuntu/+archive/primary/+files/fontconfig_$pkgver-$_ubver.debian.tar.xz" - '53-monospace-lcd-filter.patch') + '53-monospace-lcd-filter.patch' + 'fontconfig-ubuntu.hook') sha256sums=('cf0c30807d08f6a28ab46c61b8dbd55c97d2f292cf88f3a07d3384687f31f017' - '6e44e884856924986ec3637cc38d0a759934d4d065ffd65fa25dd8c9d36bc844' - 'c759702ba66fe88768aa93035637401085bb5c02d898c960b68291aea10daa8d') + '75c259e2d6b1944fe76a49f89b806b3ee34fe7a42eb25efd289e38b1b5e16517' + 'c759702ba66fe88768aa93035637401085bb5c02d898c960b68291aea10daa8d' + '672f6a1c5e164671955ce807e670306194142a1794ce88df653aa717a972e274') # nice pages to test font matching: # http://zipcon.net/~swhite/docs/computers/browsers/fonttest.html # http://getemoji.com/ prepare() { - cd fontconfig-$pkgver - - # Loop Debian patches - for _f in $(cat ../debian/patches/series); do - msg2 "Applying Debian patch: $_f" - patch -Np1 -i "../debian/patches/$_f" - done - - ## patch - #patch -p1 -i conf.d/53-monospace-lcd-filter.conf ../53-monospace-lcd-filter.patch + cd "${_srcname}-${pkgver}" + + # apply Debian patches + for _patch in $(cat "${srcdir}/debian/patches/series") + do + msg2 "Applying Debian patch: ${_patch}" + patch -Np1 -i "${srcdir}/debian/patches/${_patch}" + done + + ## patch + #patch -p1 -i conf.d/53-monospace-lcd-filter.conf ../53-monospace-lcd-filter.patch } build() { - cd fontconfig-$pkgver - - msg2 "Running ./configure.." - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --with-templatedir=/etc/fonts/conf.avail \ - --with-xmldir=/etc/fonts \ - --localstatedir=/var \ - --disable-static \ - --with-default-fonts=/usr/share/fonts \ - --with-add-fonts=/usr/share/fonts - - msg2 "Running make.." - make + cd "${_srcname}-${pkgver}" + + ./configure \ + --prefix='/usr' \ + --sysconfdir='/etc' \ + --with-templatedir='/etc/fonts/conf.avail' \ + --with-xmldir='/etc/fonts' \ + --localstatedir='/var' \ + --disable-static \ + --with-default-fonts='/usr/share/fonts' \ + --with-add-fonts='/usr/share/fonts' + + make } package() { - cd fontconfig-$pkgver - - msg2 "Running 'make install'.." - make DESTDIR="$pkgdir" install - - # License - install -Dm0644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING - - # Docs - install -Dm0644 ../debian/changelog "$pkgdir"/usr/share/doc/fontconfig/changelog + cd "${_srcname}-${pkgver}" + + make DESTDIR="$pkgdir" install + + # pacman hook + install -D -m644 "${srcdir}/${pkgname}.hook" "${pkgdir}/usr/share/libalpm/hooks/fontconfig.hook" + + # license + install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # Debian changelog + install -D -m644 "${srcdir}/debian/changelog" "${pkgdir}/usr/share/doc/fontconfig/changelog" } |