# # Apps Packages for Chakra, part of chakra-project.org # # Maintainer: Adrián Chaves Fernández (Gallaecio) # Contributor: Stefan Husmann # Contributor: corvolino # Contributor: Joel Schaerer pkgname=pdf2svg pkgver=0.2.2 pkgrel=2 pkgdesc="A PDF to SVG converter." arch=('x86_64') url="http://www.cityinthesky.co.uk/pdf2svg.html" license=('GPL3') depends=('lcms2' 'poppler-glib' 'glib2') source=(http://www.cityinthesky.co.uk/wp-content/uploads/2013/10/$pkgname-$pkgver.tar.gz) sha256sums=('c2a29cc81d01fea220523abad39c400e9c5411b395b6ba3ccbedb4cd398ec6cb') prepare() { cd ${pkgname}-${pkgver} # fixes to remove the gtk2 dependency (unneeded, because glib contains everything) sed -i '22a #include ' ./pdf2svg.c sed -i "23,24d" ./configure.ac sed -i -e 's/$(GTK2_[^)]*) //g' ./Makefile.am # reomve notion of gtk2 # Copy missing README file cp README.md README } build() { cd ${pkgname}-${pkgver} aclocal autoscan autoconf automake ./configure \ --prefix=/usr make } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install }