Date: Thursday, March 28, 2019 @ 15:43:33 Author: heftig Revision: 349372
2.4.0-1 Modified: ftgl/trunk/PKGBUILD ----------+ PKGBUILD | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-03-28 15:27:08 UTC (rev 349371) +++ PKGBUILD 2019-03-28 15:43:33 UTC (rev 349372) @@ -4,36 +4,44 @@ pkgname=ftgl _pkgver=2.1.3-rc5 -pkgver=${_pkgver/-/} -pkgrel=10 +pkgver=2.4.0 +pkgrel=1 pkgdesc="OpenGL library to use arbitrary fonts" arch=(x86_64) -url="https://sourceforge.net/projects/ftgl/" +url="https://github.com/frankheckenbach/ftgl" license=(MIT) depends=(freetype2 glu) -makedepends=(doxygen mesa graphviz) -source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$_pkgver.tar.bz2") -sha256sums=('521ff7bd62c459ff5372e269c223e2a6107a6a99a36afdc2ae634a973af70c59') +makedepends=(doxygen mesa graphviz git) +_commit=483639219095ad080538e07ceb5996de901d4e74 # tags/v2.4.0 +source=("git+https://github.com/frankheckenbach/ftgl#commit=$_commit") +sha256sums=('SKIP') +pkgver() { + cd $pkgname + git describe --tags | sed 's/^v//;s/-/+/g' +} + prepare() { - cd $pkgname-${_pkgver/-/\~} - sed -i '/^SUBDIRS =/s/demo//' Makefile.in + cd $pkgname printf '%s\n' >>docs/doxygen.cfg.in \ HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes + ./autogen.sh } build() { - cd $pkgname-${_pkgver/-/\~} + cd $pkgname ./configure --prefix=/usr --with-pic --disable-static make } package() { - cd $pkgname-${_pkgver/-/\~} + cd $pkgname make DESTDIR="$pkgdir" install # FS#23283: install missing headers for OpenCascade - install -m644 src/FT{Face,Library,Size}.h "$pkgdir/usr/include/FTGL/" + install -Dt "$pkgdir/usr/include/FTGL" -m644 src/FT{Face,Size}.h - install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING } + +# vim:set sw=2 et: