aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sc/APKBUILD
blob: a19c019dbc70853355ac0ab1313a0fcbd5ddfed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Contributor: ScrumpyJack <scrumpyjack@me.com>
# Maintainer:
pkgname=sc
pkgver=7.16
pkgrel=0
pkgdesc="Speadsheet Calculator"
url="https://github.com/dkastner/sc"
arch="all"
license="Public Domain"
depends="ncurses"
depends_dev="ncurses-dev bison"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://ibiblio.org/pub/linux/apps/financial/spreadsheet/$pkgname-$pkgver.tar.gz https://launchpadlibrarian.net/1281150/${pkgname}_${pkgver}-2.diff.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/${pkgname}_${pkgver}-2.diff || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make  || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/lib" "$pkgdir/usr/share/man/man1"
	make prefix="$pkgdir"/usr MANDIR="$pkgdir"/usr/share/man/man1 install || return 1
}
md5sums="1db636e9b2dc7cd73c40aeece6852d47  sc-7.16.tar.gz
83d5d8a4b5ffb4e85da887b63c49f2ff  sc_7.16-2.diff.gz"
sha256sums="1997a00b6d82d189b65f6fd2a856a34992abc99e50d9ec463bbf1afb750d1765  sc-7.16.tar.gz
37116b9619790564650c4090b4a6264c08aa59fa1e24c63ca073011cd70507cb  sc_7.16-2.diff.gz"
sha512sums="efa495ba21d01b578a53f09101ccc28b564437317e0860904ad59136a24df9619dfc8715339296ae1567eaa8d620cdabc9bc2784962bc1c93e3bbd086856407b  sc-7.16.tar.gz
3dd916b2aee6e8ececed69c813dfffedd77054092fa38db7604a10d252a6cacb20ddfe9f270d31d4145f88b0d48040e3b0db6a698b21358ba57d8e9db2b5cbad  sc_7.16-2.diff.gz"