summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Husmann2016-09-06 19:15:13 +0200
committerStefan Husmann2016-09-06 19:15:13 +0200
commit12a9e3007f65408bdde0d36d6673fc77977c96f7 (patch)
treeffc9cf815e0b9cf75023ef859259d30b6ac80bd6
parent0f1c2a4bcb1b9e7cbb6e412ad20417efbc307f56 (diff)
downloadaur-tif22pnm.tar.gz
split package with new sourc url
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD50
2 files changed, 35 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9258a1f67f2..26d2a13060e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,19 @@
pkgbase = tif22pnm
pkgdesc = converter used by sam2p if available
pkgver = 0.14
- pkgrel = 1
+ pkgrel = 2
url = http://pts.szit.bme.hu
arch = i686
arch = x86_64
license = GPL
- depends = libpng
- depends = libtiff
- provides = tif22pnm
- source = http://sam2p.googlecode.com/files/tif22pnm-0.14.tar.gz
+ source = https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/sam2p/tif22pnm-0.14.tar.gz
source = do.sh.patch
- md5sums = 7bb776bb2eca962f5237ea2cc6dcf85d
- md5sums = 94a5d88cb8ddd234a6117a906c9d5a28
+ sha256sums = d59ea3f1fdd6802e66a44fbfa8979d4e61c9fd021de36675249a877392378e01
+ sha256sums = 3835af3f4f8db84744fef7e00ecbc1cca1c026e2f5794e0746af2cd0558e2127
pkgname = tif22pnm
+ depends = libtiff
+
+pkgname = png22pnm
+ depends = libpng
diff --git a/PKGBUILD b/PKGBUILD
index 8cb7e8062d0..d5f074c6a98 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,39 +1,43 @@
-# Contributor: Stefan Husmann <stefan.husmann@t-systems.com>
-# Contributor: menta
-pkgname=tif22pnm
+# Maintainer: Stefan Husmann <stefan.husmann@t-systems.com>
+# Contributor: menta
+
+pkgbase=tif22pnm
+pkgname=('tif22pnm' 'png22pnm')
pkgver=0.14
-pkgrel=1
+pkgrel=2
pkgdesc="converter used by sam2p if available"
arch=('i686' 'x86_64')
-depends=('libpng' 'libtiff')
url="http://pts.szit.bme.hu"
license=('GPL')
-provides=(tif22pnm)
-source=(http://sam2p.googlecode.com/files/$pkgname-$pkgver.tar.gz do.sh.patch)
-md5sums=('7bb776bb2eca962f5237ea2cc6dcf85d'
- '94a5d88cb8ddd234a6117a906c9d5a28')
+source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/sam2p/$pkgname-$pkgver.tar.gz do.sh.patch)
+sha256sums=('d59ea3f1fdd6802e66a44fbfa8979d4e61c9fd021de36675249a877392378e01'
+ '3835af3f4f8db84744fef7e00ecbc1cca1c026e2f5794e0746af2cd0558e2127')
-build() {
- cd "$srcdir/$pkgname-$pkgver"
-
+prepare() {
# patching do.sh
# Inspiration:
# http://code.google.com/p/pdfsizeopt/issues/detail?id=48#c9 --> -lz flag
# "undefined reference to symbol 'pow@@GLIBC_2.2.5'" --> -lm flag
# https://aur.archlinux.org/packages.php?ID=7573
- cp "$srcdir/do.sh.patch" do.sh.patch
- patch -p0 < do.sh.patch
- rm do.sh.patch
+ cd "$srcdir/$pkgbase-$pkgver"
+ patch -p0 < "$srcdir"/do.sh.patch
+}
- ./configure --prefix=$pkgdir/usr
+build() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ ./configure --prefix="$pkgdir"/usr
./do.sh compile
}
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- install -d $pkgdir/usr/share/tif22pnm
- install -d $pkgdir/usr/bin
- install -m644 README $pkgdir/usr/share/tif22pnm
- install -m755 tif22pnm $pkgdir/usr/bin
- install -m755 png22pnm $pkgdir/usr/bin
+package_png22pnm() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ depends=('libpng')
+ install -Dm755 png22pnm "$pkgdir"/usr/bin/png22pnm
+}
+
+package_tif22pnm() {
+ cd "$srcdir/$pkgbase-$pkgver"
+ depends=('libtiff')
+ install -Dm644 README "$pkgdir"/usr/share/tif22pnm/README
+ install -Dm755 tif22pnm "$pkgdir"/usr/bin/tif22pnm
}