Mail archive
alpine-aports

[alpine-aports] [PATCH] main/lzo: Add -doc subpackage. Minor cleanups in APKBUILD

From: Valery Kartel <valery.kartel_at_gmail.com>
Date: Thu, 14 Jan 2016 19:25:33 +0200

---
 main/lzo/APKBUILD | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/main/lzo/APKBUILD b/main/lzo/APKBUILD
index 31ceb69..736b424 100644
--- a/main/lzo/APKBUILD
+++ b/main/lzo/APKBUILD
_at_@ -1,8 +1,9 @@
+# Contributor: Valery Kartel <valery.kartel_at_gmail.com>
 # Contributor: Michael Mason <ms13sp_at_gmail.com>
 # Maintainer: Michael Mason <ms13sp_at_gmail.com>
 pkgname=lzo
 pkgver=2.09
-pkgrel=0
+pkgrel=1
 pkgdesc="LZO -- a real-time data compression library"
 url="http://www.oberhumer.com/opensource/lzo"
 arch="all"
_at_@ -10,14 +11,10 @@ license="GPL"
 depends=""
 makedepends=""
 install=
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev $pkgname-doc"
 source="http://www.oberhumer.com/opensource/lzo/download/$pkgname-$pkgver.tar.gz"
 
-_builddir="$srcdir/$pkgname-$pkgver"
-
-prepare() {
-	cd "$_builddir"
-}
+_builddir="$srcdir"/$pkgname-$pkgver
 
 build() {
 	cd "$_builddir"
_at_@ -34,7 +31,7 @@ build() {
 }
 
 package() {
-	cd "$srcdir/$pkgname-$pkgver"
+	cd "$_builddir"
 	make DESTDIR="$pkgdir" install || return 1
 }
 
-- 
2.7.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Jan 14 2016 - 19:25:33 GMT