Mail archive
alpine-aports

[alpine-aports] [PATCH] main/sc: major clean-up

From: Cág <ca6c_at_bitmessage.ch>
Date: Wed, 31 Jan 2018 19:37:59 +0000

---
 main/sc/APKBUILD | 31 ++++++++++++++-----------------
 1 file changed, 14 insertions(+), 17 deletions(-)
diff --git a/main/sc/APKBUILD b/main/sc/APKBUILD
index 3204be40da..eea7db5b5f 100644
--- a/main/sc/APKBUILD
+++ b/main/sc/APKBUILD
_at_@ -2,41 +2,38 @@
 # Maintainer: ScrumpyJack <scrumpyjack_at_st.ilet.to>
 pkgname=sc
 pkgver=7.16
-pkgrel=4
+pkgrel=5
 pkgdesc="Speadsheet Calculator"
 url="https://github.com/dkastner/sc"
 arch="all"
 license="Public-Domain"
-depends="ncurses"
+depends=""
 depends_dev=""
-makedepends="ncurses-dev bison"
+makedepends="ncurses-dev byacc"
 install=""
 subpackages="$pkgname-doc"
 source="http://ibiblio.org/pub/linux/apps/financial/spreadsheet/$pkgname-$pkgver.tar.gz
        sc_7.16-2.patch"
 
-_builddir="$srcdir/$pkgname-$pkgver"
+builddir="$srcdir/$pkgname-$pkgver"
+
 prepare() {
-	local i
-	cd "$_builddir"
-	for i in $source; do
-		case $i in
-                *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
-		esac
-	done
+	default_prepare
+	sed -i -e '171 {s/^/#/}' \
+		-e '334 {s/^/#/}' \
+		"$builddir"/Makefile
 }
 
 build() {
-	cd "$_builddir"
-	make  || return 1
+	cd "$builddir"
+	make
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/lib" "$pkgdir/usr/share/doc" \
-           "$pkgdir/usr/share/man"
-	make prefix="$pkgdir"/usr MANDIR="$pkgdir/usr/share/man" install \
-        || return 1
+           "$pkgdir/usr/share/man/man1"
+	make prefix="$pkgdir"/usr MANDIR="$pkgdir/usr/share/man/man1" install
 }
 md5sums="1db636e9b2dc7cd73c40aeece6852d47  sc-7.16.tar.gz
 58c3c966ab818ddee9726880ea7e6e44  sc_7.16-2.patch"
-- 
2.16.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Jan 31 2018 - 19:37:59 GMT