desktop/pdf2svg/PKGBUILD

45 lines
1.1 KiB
Bash
Raw Normal View History

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: corvolino <corvolino@archlinux.com.br>
# Contributor: Joel Schaerer
pkgname=pdf2svg
2013-10-25 16:21:09 +08:00
pkgver=0.2.2
2014-04-07 02:25:16 +08:00
pkgrel=2
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')
2014-04-07 02:25:16 +08:00
source=(http://www.cityinthesky.co.uk/wp-content/uploads/2013/10/$pkgname-$pkgver.tar.gz)
2013-10-25 16:21:09 +08:00
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() {
2013-10-25 16:21:09 +08:00
cd ${pkgname}-${pkgver}
aclocal
autoscan
autoconf
automake
./configure \
--prefix=/usr
make
}
package() {
2013-10-25 16:21:09 +08:00
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
}