summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas F2015-08-15 22:10:06 +0200
committerNicolas F2015-08-15 22:10:06 +0200
commitba2b0bc398e6b05b92627e183f724ce27cb61437 (patch)
tree0fc802aa5055d4ced168aee8942190e66cefc218
parente627e564a04e4aeee339558018d8e591d7ab5791 (diff)
downloadaur-ba2b0bc398e6b05b92627e183f724ce27cb61437.tar.gz
Split package
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD35
2 files changed, 44 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3a2a819595f..5c64d087c48 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,4 @@
-pkgbase = zopflipng-git
- pkgdesc = PNG optimisation tool using Google's zopfli library, git version.
+pkgbase = zopfli-git
pkgver = 1.0.0.r31.g6ff3ba2
pkgrel = 1
url = https://github.com/google/zopfli
@@ -10,8 +9,21 @@ pkgbase = zopflipng-git
makedepends = git
depends = gcc-libs
provides = zopflipng
+ provides = zopfli
+ provides = libzopfli
+ provides = libzopflipng
source = git+https://github.com/google/zopfli.git
md5sums = SKIP
+pkgname = zopfli-git
+ pkgdesc = Compression utility by Google, git version.
+
+pkgname = libzopfli-git
+ pkgdesc = Compression library by Google, git version.
+
pkgname = zopflipng-git
+ pkgdesc = PNG optimisation tool using Google's zopfli library, git version.
+
+pkgname = libzopflipng-git
+ pkgdesc = PNG optimisation library using Google's zopfli library, git version.
diff --git a/PKGBUILD b/PKGBUILD
index 405f366da92..bfdf3dab596 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,13 @@
# Maintainer: Nicolas F. <aur@fratti.ch>
-pkgname=zopflipng-git
+pkgname=("zopfli-git" "libzopfli-git" "zopflipng-git" "libzopflipng-git")
pkgver=1.0.0.r31.g6ff3ba2
pkgrel=1
-pkgdesc="PNG optimisation tool using Google's zopfli library, git version."
arch=('i686' 'x86_64' 'ARM')
url="https://github.com/google/zopfli"
license=('Apache')
makedepends=('git')
depends=('gcc-libs')
-provides=('zopflipng')
+provides=('zopflipng' 'zopfli' 'libzopfli' 'libzopflipng')
source=('git+https://github.com/google/zopfli.git')
md5sums=('SKIP')
@@ -19,10 +18,36 @@ pkgver() {
build() {
cd "$srcdir/zopfli"
- make zopflipng
+ make zopfli
+ make libzopfli
+ make zopflipng
+ make libzopflipng
}
-package() {
+package_zopflipng-git() {
+ pkgdesc="PNG optimisation tool using Google's zopfli library, git version."
cd "$srcdir/zopfli"
install -Dm755 zopflipng "${pkgdir}/usr/bin/zopflipng"
}
+
+package_libzopflipng-git() {
+ pkgdesc="PNG optimisation library using Google's zopfli library, git version."
+ cd "$srcdir/zopfli"
+ _libname=$(find . -name "libzopflipng.so.*" -print)
+ install -D $_libname "${pkgdir}/usr/lib/$_libname"
+ ln -s "${pkgdir}/usr/lib/$_libname" "${pkgdir}/usr/lib/libzopflipng.so"
+}
+
+package_libzopfli-git() {
+ pkgdesc="Compression library by Google, git version."
+ cd "$srcdir/zopfli"
+ _libname=$(find . -name "libzopfli.so.*" -print)
+ install -D $_libname "${pkgdir}/usr/lib/$_libname"
+ ln -s "${pkgdir}/usr/lib/$_libname" "${pkgdir}/usr/lib/libzopfli.so"
+}
+
+package_zopfli-git() {
+ pkgdesc="Compression utility by Google, git version."
+ cd "$srcdir/zopfli"
+ install -Dm755 zopfli "${pkgdir}/usr/bin/zopfli"
+} \ No newline at end of file