1 # Maintainer: Jan de Groot <jgc@archlinux.org>
2 # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
3 # Contributor: daniel g. siegel <dgsiegel@gmail.com>
8 pkgdesc="A library for providing access to as much BIOS information as possible"
10 url="https://github.com/dell/libsmbios"
11 license=('GPL' 'custom')
13 makedepends=('libxml2' 'python' 'chrpath' 'doxygen' git cppunit help2man)
14 optdepends=('python: tools')
15 _commit=5b72244ca0d09c7f228d571ec2d5d20183486c11 # tags/v2.4.3
16 source=("git+https://github.com/dell/libsmbios.git#commit=$_commit")
21 git describe --tags | sed 's/^v//;s/-/+/g'
26 ./autogen.sh --no-configure
34 ../configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --disable-static
40 make DESTDIR="${pkgdir}" install
42 chrpath -d "${pkgdir}/usr/bin/smbios-sys-info-lite"
43 install -m755 -d "${pkgdir}/usr/include"
45 cp -a ../src/include/* "${pkgdir}/usr/include/"
46 cp -a out/public-include/* "${pkgdir}/usr/include/"
48 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
49 install -m644 ../COPYING-OSL "${pkgdir}/usr/share/licenses/${pkgname}/"