aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Saponara <as@php.net>2020-03-14 17:20:18 -0500
committerLeo <thinkabit.ukim@gmail.com>2020-03-15 14:34:56 -0300
commit10c4a6ac2ca8eb62de5eac7b10177e09b0abcb26 (patch)
treefede9ee4cbd9c8d1202c70f5a893e3c3ac8159ec
parent66de408d2baf82a0296c1ed704b0d07cd77f6e5a (diff)
downloadaports-10c4a6ac2ca8eb62de5eac7b10177e09b0abcb26.tar.gz
aports-10c4a6ac2ca8eb62de5eac7b10177e09b0abcb26.tar.bz2
aports-10c4a6ac2ca8eb62de5eac7b10177e09b0abcb26.tar.xz
testing/termbox: new aport
-rw-r--r--testing/termbox/APKBUILD35
-rw-r--r--testing/termbox/meson.build20
2 files changed, 55 insertions, 0 deletions
diff --git a/testing/termbox/APKBUILD b/testing/termbox/APKBUILD
new file mode 100644
index 0000000000..737bcc650d
--- /dev/null
+++ b/testing/termbox/APKBUILD
@@ -0,0 +1,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"
diff --git a/testing/termbox/meson.build b/testing/termbox/meson.build
new file mode 100644
index 0000000000..8ab501ff71
--- /dev/null
+++ b/testing/termbox/meson.build
@@ -0,0 +1,20 @@
+project('termbox', 'c',
+ version : '1.1.2',
+ license : 'MIT')
+
+termbox = library('termbox',
+ ['src/termbox.c', 'src/utf8.c'],
+ include_directories: 'src',
+ version: meson.project_version(),
+ soversion: '1',
+ install: true)
+
+
+pkg_mod = import('pkgconfig')
+pkg_mod.generate(libraries: termbox,
+ version: meson.project_version(),
+ name: 'libtermbox',
+ filebase: 'termbox',
+ description: 'legacy-free ncurses replacement')
+
+install_headers('src/termbox.h')