summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2017-11-23 13:33:31 +0100
committerhaawda2017-11-23 13:33:31 +0100
commit96bdab33afea1c1db53d815c89b1bdba28dda1ee (patch)
tree02f13918fb43dc0c632aab32fae6f2246d56c6b0
parentb8e947460bd960eeff92865b549d15900f6837a3 (diff)
downloadaur-96bdab33afea1c1db53d815c89b1bdba28dda1ee.tar.gz
strangely this program needs to be build in package function
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD18
2 files changed, 10 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b198c6c24e7..23b961c03bc 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 = 3
+ pkgrel = 4
url = http://www.inf.bme.hu/~pts
arch = i686
arch = x86_64
@@ -15,8 +15,8 @@ pkgbase = sam2p
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
- sha256sums = d23707b2405ca94e2a237cb81f62fb5916f5e4360cf9a705061479c8fa1dff5c
- sha256sums = 73c18ac87fa8fc498ea14fb2ed162e50470fa40ce4f273bbc13dfaa2b13c8f7d
+ md5sums = 78015830657f245839d0bcecb3340a6f
+ md5sums = 0cd1b3cc7b2781b3df19769342af102b
pkgname = sam2p
diff --git a/PKGBUILD b/PKGBUILD
index 88da9ad61b6..fe0dcf95227 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=sam2p
pkgver=0.49.4
-pkgrel=3
+pkgrel=4
pkgdesc="A bitmap-to-eps-or-pdf-converter that produces very small files"
arch=('i686' 'x86_64')
url="http://www.inf.bme.hu/~pts"
@@ -17,8 +17,8 @@ optdepends=('ghostscript: PS, EPS, PDF support'
'png22pnm: for png support')
# 'netpbm: PNG support'
source=("https://github.com/pts/sam2p/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" makedep.patch)
-sha256sums=('d23707b2405ca94e2a237cb81f62fb5916f5e4360cf9a705061479c8fa1dff5c'
- '73c18ac87fa8fc498ea14fb2ed162e50470fa40ce4f273bbc13dfaa2b13c8f7d')
+md5sums=('78015830657f245839d0bcecb3340a6f'
+ '0cd1b3cc7b2781b3df19769342af102b')
noextract=("$pkgname-$pkgver.tar.gz")
prepare() {
@@ -27,15 +27,11 @@ prepare() {
patch -p1 < $srcdir/makedep.patch
}
-build() {
+package() {
cd $pkgname-$pkgver
autoconf
- CXX="g++ --std=c++98" PREFIX=/usr ./configure --prefix="$pkgdir"/usr --enable-lzw --enable-gif
+ CXX="g++ --std=c++98" ./configure --prefix=/usr --enable-lzw --enable-gif
PERL5LIB+=. make all
-}
-
-package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
- install -D -m644 README "$pkgdir"/usr/share/sam2p/docs/README
+ install -Dm755 sam2p $pkgdir/usr/bin/sam2p
+ install -Dm644 README "$pkgdir"/usr/share/sam2p/docs/README
}