aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCág <ca6c@bitmessage.ch>2018-01-31 19:37:59 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-02-12 10:52:45 +0000
commit7ebb5145a732879b4a7a3135378ead8b34e0fef9 (patch)
tree4737c64de95eaf37cbf05dec73241e08babfa1bf
parent3459fad244fbe8aaa787d160cc8147ba9ea38a9a (diff)
downloadaports-7ebb5145a732879b4a7a3135378ead8b34e0fef9.tar.gz
aports-7ebb5145a732879b4a7a3135378ead8b34e0fef9.tar.bz2
aports-7ebb5145a732879b4a7a3135378ead8b34e0fef9.tar.xz
main/sc: major clean-up
-rw-r--r--main/sc/APKBUILD31
1 files 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
@@ -2,41 +2,38 @@
# Maintainer: ScrumpyJack <scrumpyjack@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"