aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sandy/APKBUILD
blob: 306d3e3c8f99def68f2e3d2e0315dc7a3a9f2540 (plain) (blame)
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
# Contributor:
# Maintainer:
pkgname=sandy
pkgver=0.4
pkgrel=2
pkgdesc="sandy is an ncurses text editor with an easy-to-read, hackable C source."
url="http://tools.suckless.org/sandy"
arch="all"
license="MIT"
depends="ncurses"
depends_dev=""
makedepends="$depends_dev ncurses-dev"
install=""
subpackages="$pkgname-doc"
source="http://git.suckless.org/sandy/snapshot/sandy-$pkgver.tar.bz2"

builddir=${srcdir}/${pkgname}-${pkgver}

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

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" PREFIX=/usr install || return 1
	install -d "$pkgdir"/usr/share/licenses/"$pkgname"
	install -m644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"
}

md5sums="cfa8e64013d64151fb7efd4f0161eea8  sandy-0.4.tar.bz2"
sha256sums="d30336704178611f36a55982932369c6dd55a781e22735bb7dfcb3e4b939492a  sandy-0.4.tar.bz2"
sha512sums="3579436d6566b9ef3273abb7bb1d8934901155220edb963a0ed93db4b860e1e3fa0d0f1235ea87b42f1b6ddbb69e3ef1f5ba7a2e9455d6659b621d9a4e3f25c2  sandy-0.4.tar.bz2"