aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-06-13 07:27:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-06-13 07:28:44 +0000
commitbffb5065064bb22ab941550ba1aea1074aad64e7 (patch)
treebd0e14f00a210e9ef82dc99f441ee552c34a9b5d
parent0385111fc53dbe460fc604aaed5d8a8f4e2d41df (diff)
downloadaports-bffb5065064bb22ab941550ba1aea1074aad64e7.tar.gz
aports-bffb5065064bb22ab941550ba1aea1074aad64e7.tar.bz2
aports-bffb5065064bb22ab941550ba1aea1074aad64e7.tar.xz
testing/osinfo-db: new aport
osinfo database files http://libosinfo.org/
-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"