aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/osinfo-db/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/osinfo-db/APKBUILD b/testing/osinfo-db/APKBUILD
new file mode 100644
index 0000000000..3b104b98eb
--- /dev/null
+++ b/testing/osinfo-db/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=osinfo-db
+pkgver=20170423
+pkgrel=0
+pkgdesc="osinfo database files"
+url="http://libosinfo.org/"
+arch="noarch"
+license="LGPLv2+"
+depends=""
+makedepends="osinfo-db-tools"
+install=""
+subpackages=""
+source="https://releases.pagure.org/libosinfo/osinfo-db-$pkgver.tar.xz"
+builddir="$srcdir/osinfo-db-$pkgver"
+
+build() {
+ cd "$builddir"
+}
+
+check() {
+ osinfo-db-validate --dir "$builddir"
+}
+
+package() {
+ cd "$builddir"
+ osinfo-db-import --root "$pkgdir" \
+ --dir /usr/share/osinfo "$srcdir"/osinfo-db-$pkgver.tar.xz
+}
+
+sha512sums="5ca13ced160f19dced65f3552e17a0379a47a05f1aa3bdd533550022f0023050b6cc1b43b2da6cff3fa10451f81560fbb0db241a11ed072b9f101db1bd301833 osinfo-db-20170423.tar.xz"