diff options
Diffstat (limited to 'main/sc/APKBUILD')
-rw-r--r-- | main/sc/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/main/sc/APKBUILD b/main/sc/APKBUILD new file mode 100644 index 0000000000..b7d588451e --- /dev/null +++ b/main/sc/APKBUILD @@ -0,0 +1,46 @@ +# Contributor: ScrumpyJack <scrumpyjack@me.com> +# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> +pkgname=sc +pkgver=7.16 +pkgrel=1 +pkgdesc="Speadsheet Calculator" +url="https://github.com/dkastner/sc" +arch="all" +license="Public Domain" +depends="ncurses" +depends_dev="" +makedepends="ncurses-dev bison" +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" +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 +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + 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 +} +md5sums="1db636e9b2dc7cd73c40aeece6852d47 sc-7.16.tar.gz +58c3c966ab818ddee9726880ea7e6e44 sc_7.16-2.patch" +sha256sums="1997a00b6d82d189b65f6fd2a856a34992abc99e50d9ec463bbf1afb750d1765 sc-7.16.tar.gz +8146623fb7369d4cc10a91032a646519077314a04632d1c40d5b97d0967a70d0 sc_7.16-2.patch" +sha512sums="efa495ba21d01b578a53f09101ccc28b564437317e0860904ad59136a24df9619dfc8715339296ae1567eaa8d620cdabc9bc2784962bc1c93e3bbd086856407b sc-7.16.tar.gz +cb025e84148085e37bfb0ee02bdda60e5ab146ded14f5f0da2f17b3dbf0ba330eef87e534f8a0085265e53295591de222350eb918bb0d1d2994894ce19b16862 sc_7.16-2.patch" |