[arch-commits] Commit in libsmbios/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Thu Nov 15 22:04:08 UTC 2018


    Date: Thursday, November 15, 2018 @ 22:04:07
  Author: arojas
Revision: 339748

archrelease: copy trunk to testing-x86_64

Added:
  libsmbios/repos/testing-x86_64/
  libsmbios/repos/testing-x86_64/PKGBUILD
    (from rev 339747, libsmbios/trunk/PKGBUILD)

----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

Copied: libsmbios/repos/testing-x86_64/PKGBUILD (from rev 339747, libsmbios/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-11-15 22:04:07 UTC (rev 339748)
@@ -0,0 +1,50 @@
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail.com>
+# Contributor: daniel g. siegel <dgsiegel at gmail.com>
+
+pkgname=libsmbios
+pkgver=2.4.2
+pkgrel=1
+pkgdesc="A library for providing access to as much BIOS information as possible"
+arch=('x86_64')
+url="https://github.com/dell/libsmbios"
+license=('GPL' 'custom')
+depends=('gcc-libs')
+makedepends=('libxml2' 'python' 'chrpath' 'doxygen' git cppunit help2man)
+optdepends=('python: tools')
+_commit=f4031c3a261d48cdfcb38ed7b2ad1089703937f7  # tags/v2.4.2
+source=("git+https://github.com/dell/libsmbios.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  ./autogen.sh --no-configure
+}
+
+build() {
+  unset MAKEFLAGS
+  cd $pkgname
+  mkdir build
+  cd build
+  ../configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --disable-static
+  make
+}
+
+package() {
+  cd $pkgname/build
+  make DESTDIR="${pkgdir}" install
+
+  chrpath -d "${pkgdir}/usr/bin/smbios-sys-info-lite"
+  install -m755 -d "${pkgdir}/usr/include"
+
+  cp -a ../src/include/* "${pkgdir}/usr/include/"
+  cp -a out/public-include/* "${pkgdir}/usr/include/"
+
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 ../COPYING-OSL "${pkgdir}/usr/share/licenses/${pkgname}/"
+}


More information about the arch-commits mailing list