aboutsummaryrefslogtreecommitdiffstats
path: root/testing/termbox/APKBUILD
blob: 737bcc650d3ac3eb06b427bf69b14a471c1d316c (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
# Contributor: Adam Saponara <as@php.net>
# Maintainer: Adam Saponara <as@php.net>
pkgname=termbox
pkgver=1.1.2
pkgrel=0
pkgdesc="Legacy-free alternative to ncurses"
url="https://github.com/nsf/termbox"
arch="all"
license="MIT"
makedepends="meson"
subpackages="$pkgname-static $pkgname-dev"
options="!check" # no tests available
source="$pkgname-$pkgver.tar.gz::https://github.com/nsf/termbox/archive/v$pkgver.tar.gz
	meson.build
	"

prepare() {
	default_prepare
	mv "$srcdir"/meson.build .
}

build() {
	meson \
		--prefix=/usr \
		--buildtype=plain \
		--default-library=both \
		. output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
}
sha512sums="fcb240e9aa480a0cc738f0d01e60c39ef0f333f434c0d1f2d276d3d75edd351e694fd800e0b8dbadd12be686a4261551d10d475933197ef539cdb4dd70c153cb  termbox-1.1.2.tar.gz
2c87d27d47d0eb3348c945de0495512d77c77c2208d1b29a617313a1cbab770f869b2310342916e654db9330ad0b1168d820d49ecd1ca9bb3bd67e88f3b16541  meson.build"