mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 11:17:14 +08:00
pdf2svg: 0.2.2
This commit is contained in:
parent
54e1d6d224
commit
a61a123cc1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user