aboutsummaryrefslogtreecommitdiffstats
path: root/testing/glibd
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-01-31 20:40:32 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-01-31 21:40:50 +0100
commitfe028a49bf5625809cc2792610d4cd36bae3d214 (patch)
tree042233d02d3e0146da8b41fbf61a11f3b494be2d /testing/glibd
parent05ee32941ad0cfe70b46da74842d689fcf3f006f (diff)
downloadaports-fe028a49bf5625809cc2792610d4cd36bae3d214.tar.bz2
aports-fe028a49bf5625809cc2792610d4cd36bae3d214.tar.xz
testing/glibd: new aport
https://github.com/gtkd-developers/GlibD D bindings for the GLib C Utility Library
Diffstat (limited to 'testing/glibd')
-rw-r--r--testing/glibd/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/glibd/APKBUILD b/testing/glibd/APKBUILD
new file mode 100644
index 0000000000..7dbdc71ba6
--- /dev/null
+++ b/testing/glibd/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=glibd
+pkgver=2.1.0
+pkgrel=0
+pkgdesc="D bindings for the GLib C Utility Library"
+url="https://github.com/gtkd-developers/GlibD"
+arch="x86_64" # ldc
+license="GPL-3.0-or-later"
+makedepends="meson gobject-introspection-dev glib-dev ldc ldc-runtime gir-to-d"
+subpackages="$pkgname-dev"
+source="https://github.com/gtkd-developers/GlibD/archive/v$pkgver/glibd-$pkgver.tar.gz"
+builddir="$srcdir/GlibD-$pkgver"
+
+build() {
+ LDFLAGS="$LDFLAGS -link-defaultlib-shared" meson \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=release \
+ . output
+ ninja -C output
+}
+
+check() {
+ ninja -C output test
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C output install
+}
+
+sha512sums="2e00933e666f213ef5e38d3df5695966a76cdac067603e39d09f7ac8a5a4cab48ea498044de1d9daa2920609b7f8d6d5c090a666a6507a563bb896be2cc8c32f glibd-2.1.0.tar.gz"