# Contributor:
# Maintainer:
setvar pkgname = 'sandy'
setvar pkgver = '0.4'
setvar pkgrel = '2'
setvar pkgdesc = ""sandy is an ncurses text editor with an easy-to-read, hackable C source.""
setvar url = ""http://tools.suckless.org/sandy""
setvar arch = ""all""
setvar license = ""MIT""
setvar depends = ""ncurses""
setvar depends_dev = """"
setvar makedepends = ""$depends_dev ncurses-dev""
setvar install = """"
setvar subpackages = ""$pkgname-doc""
setvar source = ""http://git.suckless.org/sandy/snapshot/sandy-$pkgver.tar.bz2""

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

proc build {
	cd $builddir
	make || return 1
}

proc 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"
}

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