Commit a61a123c authored by Michael's avatar Michael

pdf2svg: 0.2.2

parent 54e1d6d2
......@@ -7,24 +7,38 @@
# Contributor: Joel Schaerer
pkgname=pdf2svg
pkgver=0.2.1
pkgver=0.2.2
pkgrel=1
pkgdesc="A PDF to SVG converter."
arch=('i686' 'x86_64')
arch=('x86_64')
url="http://www.cityinthesky.co.uk/pdf2svg.html"
license=('GPL3')
depends=('poppler-glib')
source=("http://www.cityinthesky.co.uk/_media/opensource/$pkgname-$pkgver.tar.gz")
md5sums=('59b3b9768166f73b77215e95d91f0a9d')
depends=('lcms2' 'poppler-glib' 'glib2')
source=("http://www.cityinthesky.co.uk/_media/opensource/${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 <stdlib.h>' ./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 $srcdir/$pkgname-$pkgver
cd ${pkgname}-${pkgver}
aclocal
autoscan
autoconf
automake
./configure \
--prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment