aboutsummaryrefslogtreecommitdiffstats
path: root/community/osinfo-db/APKBUILD
blob: ff71d4518f276654e03237fe292a297c61ddf3aa (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=osinfo-db
pkgver=20190319
pkgrel=0
pkgdesc="osinfo database files"
url="http://libosinfo.org/"
arch="noarch"
license="LGPL-2.0-or-later"
makedepends="osinfo-db-tools"
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="fb06adeaf639e71b02bec30dafbc405e903d490cd8038d4fe94de63c4d0bb9f617a469e59d11fd4dfc5c1c0d9a6094b888ce5867634c0cbe501e5195316a8e75  osinfo-db-20190319.tar.xz"