aboutsummaryrefslogtreecommitdiffstats
path: root/testing/osinfo-db/APKBUILD
blob: 3b104b98ebfa69bff7dbe64c8f10d173af018607 (plain) (blame)
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
# 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"