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

From: Valery Kartel <[email-masked]>
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
@@ -1,8 +1,9 @@
+# Contributor: Valery Kartel <[email-masked]>
 # Contributor: Michael Mason <[email-masked]>
 # Maintainer: Michael Mason <[email-masked]>
 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"
@@ -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"
@@ -34,7 +31,7 @@ build() {
 }
 
 package() {
-	cd "$srcdir/$pkgname-$pkgver"
+	cd "$_builddir"
 	make DESTDIR="$pkgdir" install || return 1
 }
 
-- 
2.7.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---