summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2018-11-07 20:54:44 +0100
committerhaawda2018-11-07 20:54:44 +0100
commitf75049ad6091cf86b37d051fe0abb0dab08ccfac (patch)
tree89d3a078f42d8a9a4264c9b169dcd6f332da34a0
parent96bdab33afea1c1db53d815c89b1bdba28dda1ee (diff)
downloadaur-f75049ad6091cf86b37d051fe0abb0dab08ccfac.tar.gz
a lot of fixes, thanks to klao
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD19
2 files changed, 12 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 23b961c03bc..c9d00dfd378 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = sam2p
pkgdesc = A bitmap-to-eps-or-pdf-converter that produces very small files
pkgver = 0.49.4
- pkgrel = 4
+ pkgrel = 5
url = http://www.inf.bme.hu/~pts
arch = i686
arch = x86_64
@@ -14,9 +14,7 @@ pkgbase = sam2p
optdepends = png22pnm: for png support
noextract = sam2p-0.49.4.tar.gz
source = https://github.com/pts/sam2p/releases/download/v0.49.4/sam2p-0.49.4.tar.gz
- source = makedep.patch
- md5sums = 78015830657f245839d0bcecb3340a6f
- md5sums = 0cd1b3cc7b2781b3df19769342af102b
+ sha256sums = d23707b2405ca94e2a237cb81f62fb5916f5e4360cf9a705061479c8fa1dff5c
pkgname = sam2p
diff --git a/PKGBUILD b/PKGBUILD
index fe0dcf95227..3315337377e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=sam2p
pkgver=0.49.4
-pkgrel=4
+pkgrel=5
pkgdesc="A bitmap-to-eps-or-pdf-converter that produces very small files"
arch=('i686' 'x86_64')
url="http://www.inf.bme.hu/~pts"
@@ -16,22 +16,23 @@ optdepends=('ghostscript: PS, EPS, PDF support'
'tif22pnm: for tiff support'
'png22pnm: for png support')
# 'netpbm: PNG support'
-source=("https://github.com/pts/sam2p/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" makedep.patch)
-md5sums=('78015830657f245839d0bcecb3340a6f'
- '0cd1b3cc7b2781b3df19769342af102b')
+source=("https://github.com/pts/sam2p/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('d23707b2405ca94e2a237cb81f62fb5916f5e4360cf9a705061479c8fa1dff5c')
noextract=("$pkgname-$pkgver.tar.gz")
prepare() {
tar xf $pkgname-$pkgver.tar.gz
- cd $pkgname-$pkgver
- patch -p1 < $srcdir/makedep.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+ CXX="g++ --std=c++98" ./configure --prefix=/usr --enable-lzw --enable-gif
+ make all
}
package() {
cd $pkgname-$pkgver
- autoconf
- CXX="g++ --std=c++98" ./configure --prefix=/usr --enable-lzw --enable-gif
- PERL5LIB+=. make all
install -Dm755 sam2p $pkgdir/usr/bin/sam2p
+ install -Dm755 sam2p_pdf_scale.pl $pkgdir/usr/bin/sam2p_pdf_scale
install -Dm644 README "$pkgdir"/usr/share/sam2p/docs/README
}