desktop/pdf2svg/PKGBUILD

32 lines
802 B
Bash
Raw Normal View History

pkgname=pdf2svg
pkgver=0.2.3
pkgrel=1
pkgdesc="A PDF to SVG converter."
2013-10-25 16:21:09 +08:00
arch=('x86_64')
url="http://www.cityinthesky.co.uk/pdf2svg.html"
license=('GPL3')
2013-10-25 16:21:09 +08:00
depends=('lcms2' 'poppler-glib' 'glib2')
source=("https://github.com/dawbarton/pdf2svg/archive/v${pkgver}.tar.gz")
sha256sums=('4fb186070b3e7d33a51821e3307dce57300a062570d028feccd4e628d50dea8a')
2013-10-25 16:21:09 +08:00
prepare() {
cd ${pkgname}-${pkgver}
# fixes to remove the gtk2 dependency (unneeded, because glib contains everything)
sed -i '22a #include <stdlib.h>' ./pdf2svg.c
sed -i "23,24d" ./configure.ac
sed -i -e 's/$(GTK2_[^)]*) //g' ./Makefile.am # reomve notion of gtk2
}
build() {
2013-10-25 16:21:09 +08:00
cd ${pkgname}-${pkgver}
autoreconf -vfi
./configure \
--prefix=/usr
make
}
package() {
2013-10-25 16:21:09 +08:00
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}