summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12021-02-28 23:03:19 +0800
committerChocobo12021-02-28 23:10:56 +0800
commit5e84098f05ce807a57f3f4261812e83a0a4b8f04 (patch)
tree721a6f2ed19aa1e62ac777d69e625a7eec23bb74
downloadaur-5e84098f05ce807a57f3f4261812e83a0a4b8f04.tar.gz
newpkg: libsmbios-git 2.4.3.r3.gf01a217-1
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD48
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6d4aa672472
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = libsmbios-git
+ pkgdesc = Library for interacting with SMBIOS tables
+ pkgver = 2.4.3.r3.gf01a217
+ pkgrel = 1
+ url = https://github.com/dell/libsmbios
+ arch = i686
+ arch = x86_64
+ license = GPL
+ license = custom
+ makedepends = git
+ makedepends = libxml2
+ makedepends = python
+ depends = glibc
+ optdepends = python: tools
+ provides = libsmbios
+ conflicts = libsmbios
+ options = staticlibs
+ source = git+https://github.com/dell/libsmbios.git
+ sha256sums = SKIP
+
+pkgname = libsmbios-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d003d7a5167
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=libsmbios-git
+pkgver=2.4.3.r3.gf01a217
+pkgrel=1
+pkgdesc="Library for interacting with SMBIOS tables"
+arch=('i686' 'x86_64')
+url="https://github.com/dell/libsmbios"
+license=('GPL' 'custom')
+depends=('glibc')
+makedepends=('git' 'libxml2' 'python')
+optdepends=('python: tools')
+provides=('libsmbios')
+conflicts=('libsmbios')
+options=('staticlibs')
+source=("git+https://github.com/dell/libsmbios.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libsmbios"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "libsmbios"
+
+ ./autogen.sh --no-configure
+ ./configure \
+ --prefix="/usr" \
+ --sbindir="/usr/bin" \
+ --sysconfdir="/etc"
+ make
+}
+
+check() {
+ cd "libsmbios"
+
+ make check
+}
+
+package() {
+ cd "libsmbios"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm644 COPYING{,-OSL} -t "$pkgdir/usr/share/licenses/libsmbios"
+}