aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libsmbios/APKBUILD
blob: 7d7c13ff2156c001f27bab3d5d88cd66197295a4 (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=libsmbios
pkgver=2.4.2
pkgrel=1
pkgdesc="library for interacting with Dell SMBIOS tables"
url="https://github.com/dell/libsmbios"
arch="x86_64 x86"
license="GPL-2.0-or-later AND OSL-2.1"
makedepends="autoconf automake bash libtool chrpath help2man
	linux-headers gettext-dev libintl libxml2-dev"
checkdepends="python3"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang smbios-utils:utils"
source="libsmbios-$pkgver.tar.gz::https://github.com/dell/libsmbios/archive/v$pkgver.tar.gz
	fixes.patch"
builddir="$srcdir/libsmbios-$pkgver"

prepare() {
	default_prepare
	./autogen.sh --no-configure
}

build() {
	export LIBS="$LIBS -lintl"
	CONFIG_SHELL=/bin/bash \
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-python \
		--disable-static
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	chrpath -d "$pkgdir"/usr/sbin/*
}

utils() {
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/
}

sha512sums="51d1b11447d50b768658473d01bcb6cc7f9dd5c96c26ec343f222115ffb5047ca1f035a0bfb67f94f53165eaea7a0d9b70cf01f03333a30885bbac153bf761bd  libsmbios-2.4.2.tar.gz
5dd3d95e4d57abc392b64d1ed2f7fc04ce42de78730d6835a6ff8cb22931b57ef2873b1ef9744d723e2c814b710bb3ee5c2446c171387293840b557b2ad93182  fixes.patch"