Subject: [alpine-aports] [PATCH] main/e2fsprogs: libraries moved to -libs subpackage. libcomm_err development scripts and data moved from main package to -dev subpackage

From: Valery Kartel <[email-masked]>
Date: Thu, 10 Dec 2015 17:26:36 +0200

---
 main/e2fsprogs/APKBUILD | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/main/e2fsprogs/APKBUILD b/main/e2fsprogs/APKBUILD
index d33a73d..87b2c3f 100644
--- a/main/e2fsprogs/APKBUILD
+++ b/main/e2fsprogs/APKBUILD
@@ -1,7 +1,8 @@
+# Contributor: Valery Kartel <[email-masked]>
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=e2fsprogs
 pkgver=1.42.13
-pkgrel=0
+pkgrel=1
 pkgdesc="Standard Ext2/3/4 filesystem utilities"
 url="http://e2fsprogs.sourceforge.net"
 arch="all"
@@ -10,7 +11,7 @@ depends=
 install=
 depends_dev="util-linux-dev"
 makedepends="$depends_dev linux-headers"
-subpackages="$pkgname-dev $pkgname-doc libcom_err"
+subpackages="$pkgname-dev $pkgname-doc libcom_err $pkgname-libs"
 source="http://downloads.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-$pkgver.tar.gz"

@@ -48,6 +49,16 @@ package() {
 	make -j1 LDCONFIG=: DESTDIR="${pkgdir}" install install-libs || return 1
 }
 
+dev() {
+	default_dev
+	mkdir -p "$subpkgdir"/usr/bin
+	mkdir -p "$subpkgdir"/usr/share
+	mv "$pkgdir"/usr/bin/compile_et "$pkgdir"/usr/bin/mk_cmds \
+		"$subpkgdir"/usr/bin/
+	mv "$pkgdir"/usr/share/et "$pkgdir"/usr/share/ss \
+		"$subpkgdir"/usr/share
+}
+
 libcom_err() {
 	depends=
 	replaces="e2fsprogs"
-- 
2.6.3

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