Subject: [alpine-aports] [PATCH v2] main/gtkman: new upstream version 0.9

From: Christian Kampka <[email-masked]>
Date: Wed, 11 Nov 2015 20:30:06 +0100

---
 main/gtkman/APKBUILD              | 20 ++++++++++++--------
 main/gtkman/fix-man-install.patch | 13 +++++++++++++
 2 files changed, 25 insertions(+), 8 deletions(-)
 create mode 100644 main/gtkman/fix-man-install.patch

diff --git a/main/gtkman/APKBUILD b/main/gtkman/APKBUILD
index 38560a6..13bd2cf 100644
--- a/main/gtkman/APKBUILD
+++ b/main/gtkman/APKBUILD
@@ -1,7 +1,7 @@
 # Contributor: Natanael Copa <[email-masked]>
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=gtkman
-pkgver=0.5
+pkgver=0.9
 pkgrel=0
 pkgdesc="GTK+2 manual page viewer"
 url="http://www.salixos.org/wiki/index.php/GTKMan"
@@ -12,9 +12,10 @@ depends_dev=
 makedepends="gettext intltool"
 install=""
 subpackages="$pkgname-lang"
-source="http://people.salixos.org/gapan/gtkman/gtkman-$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/gapan/$pkgname/archive/$pkgver.tar.gz
+fix-man-install.patch"
 
-_builddir="$srcdir"/gtkman
+_builddir="$srcdir"/$pkgname-$pkgver
 prepare() {
 	local i
 	cd "$_builddir"
@@ -27,14 +28,17 @@ prepare() {
 
 build() {
 	cd "$_builddir"
-	./compile.sh || return 1
+	make || return 1
 }
 
 package() {
 	cd "$_builddir"
-	DESTDIR="$pkgdir" ./install.sh || return 1
+	DESTDIR="$pkgdir" PREFIX=/usr make install || return 1
 }
 
-md5sums="5b5a73149aaa474569a5e251ac2135db  gtkman-0.5.tar.gz"
-sha256sums="39213caa171e2ac0eab9298daab23fbd9c5aedb1741895a6dc385771682e4519  gtkman-0.5.tar.gz"
-sha512sums="8e0670246e165e2c2efbe84b353d2c56fb053fade39965a76242f1ec2f64009d5cd8bf8cba99b77dcc54c718972c2bc17675f2c154830675d8a50c219b3d73f5  gtkman-0.5.tar.gz"
+md5sums="7c76fed1481dfba477bba4cb14b6893f  gtkman-0.9.tar.gz
+4532f1d215a61d18c4eb36882a2a7502  fix-man-install.patch"
+sha256sums="0b272c0210f5fefdcc1a9dada81aa249edbb5a64122f05f070f9160915fa2a2c  gtkman-0.9.tar.gz
+154b4ed6911425ef43db7b42a1ac5f09f8af2e4a99f216b5c0b8c3a0bbaf5f78  fix-man-install.patch"
+sha512sums="86e36f6f41a208bed83800da1a96bfd1314c7c789aa2ec8e617636b58c5c8fcb029e6933ba11f2b34fa1b87d4e45e34af345d9ce5daed8a005320e1ef993e103  gtkman-0.9.tar.gz
+3c99d27559e1bdccfe11eb8bfe0880378018de77781d80b51d0889e26c37afd748906b26bfbea2a5ac14bee288452c457ef7c60f8188993f407bd96b6c940ac1  fix-man-install.patch"
diff --git a/main/gtkman/fix-man-install.patch b/main/gtkman/fix-man-install.patch
new file mode 100644
index 0000000..9cc9f86
--- /dev/null
+++ b/main/gtkman/fix-man-install.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index e0c20f3..2f25107 100644
+--- a/Makefile
++++ b/Makefile
+@@ -45,8 +45,6 @@ install:
+ 	sed -i "s|^package_locale_dir = '_not_set_'|package_locale_dir = '$(PACKAGE_LOCALE_DIR)'|" $(DESTDIR)/$(PREFIX)/bin/gtkman
+ 	install -D -m 644 src/gtkman.glade $(DESTDIR)/$(PREFIX)/share/gtkman/gtkman.glade
+ 	install -D -m 644 gtkman.desktop $(DESTDIR)/$(PREFIX)/share/applications/gtkman.desktop
+-	[ -f man/gtkman.man ] && \
+-		install -D -m 644 man/gtkman.man $(DESTDIR)/$(PREFIX)/share/man/man1/gtkman.1
+ 	install -d -m 755 $(DESTDIR)/$(PREFIX)/share/icons/hicolor/scalable/apps/
+ 	install -m 644 icons/gtkman.svg $(DESTDIR)/$(PREFIX)/share/icons/hicolor/scalable/apps/
+ 	for i in 32 24 22 16; do \
-- 
2.6.2

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