PKGBUILD 972 Bytes
Newer Older
Jan Mette's avatar
Jan Mette committed
1
pkgname=ftgl
abveritas's avatar
abveritas committed
2 3
_pkgver=2.1.3-rc5
pkgver=${_pkgver/-/}
Luca Giambonini's avatar
Luca Giambonini committed
4
pkgrel=3
Jan Mette's avatar
Jan Mette committed
5
pkgdesc="OpenGL library to use arbitrary fonts"
Luca Giambonini's avatar
Luca Giambonini committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19
arch=(x86_64)
url="https://sourceforge.net/projects/ftgl/"
license=(MIT)
depends=(freetype2 glu)
makedepends=(doxygen mesa graphviz)
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$_pkgver.tar.bz2")
sha256sums=('521ff7bd62c459ff5372e269c223e2a6107a6a99a36afdc2ae634a973af70c59')

prepare() {
  cd $pkgname-${_pkgver/-/\~}
  sed -i '/^SUBDIRS =/s/demo//' Makefile.in
  printf '%s\n' >>docs/doxygen.cfg.in \
    HAVE_DOT=yes DOT_IMAGE_FORMAT=svg INTERACTIVE_SVG=yes
}
Jan Mette's avatar
Jan Mette committed
20 21

build() {
Luca Giambonini's avatar
Luca Giambonini committed
22 23
  cd $pkgname-${_pkgver/-/\~}
  ./configure --prefix=/usr --with-pic --disable-static
abveritas's avatar
abveritas committed
24 25 26 27
  make
}

package() {
Luca Giambonini's avatar
Luca Giambonini committed
28
  cd $pkgname-${_pkgver/-/\~}
abveritas's avatar
abveritas committed
29 30 31 32 33 34
  make DESTDIR="$pkgdir" install

  # FS#23283: install missing headers for OpenCascade
  install -m644 src/FT{Face,Library,Size}.h "$pkgdir/usr/include/FTGL/"

  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
Jan Mette's avatar
Jan Mette committed
35
}