# Contributor: Andrew Hills <ahills@ednos.net>
# Maintainer: Andrew Hills <ahills@ednos.net>
setvar pkgname = 'fortune'
setvar pkgver = '0.1'
setvar pkgrel = '0'
setvar pkgdesc = ""Fortune cookie program ported from OpenBSD""
setvar url = ""https://github.com/ahills/fortune""
setvar arch = ""x86 x86_64 ppc64le""
setvar license = ""BSD""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = ""$depends_dev libbsd-dev""
setvar install = """"
setvar subpackages = ""$pkgname-doc""
setvar source = ""$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz""

setvar _builddir = ""$srcdir/$pkgname-$pkgver""
proc build {
	cd $_builddir
	make PREFIX=/usr
}

proc package {
	cd $_builddir
	make PREFIX=/usr DESTDIR="$pkgdir" install
}
setvar md5sums = ""a3549f7cb08891ba18776befe2dd24e3  fortune-0.1.tar.gz""
setvar sha256sums = ""5d593c8a25388b918e0f54486c6d9f9bbeb7841f825cdcc6da433153a92573a1  fortune-0.1.tar.gz""
setvar sha512sums = ""11c883aef8fafea6237fcd1b45fbbb169d6996a253f1def720dd9379c4bfe1bad050789c6e89eb7f1960abde54fe04d85fd13148bd0af8528de630611c0e6e48  fortune-0.1.tar.gz""