summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Gauduin2015-06-09 14:23:42 +0200
committerMaxime Gauduin2015-06-09 14:23:42 +0200
commitf162aa0113f3bf6d1601cd6d327258c8c6ec0bde (patch)
tree7f793821aa1ac700ce22a8bae8e5a734da5db51c
downloadaur-f162aa0113f3bf6d1601cd6d327258c8c6ec0bde.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--MKPKG9
-rw-r--r--PKGBUILD41
3 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..735d3270c83
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = lib32-libbsd
+ pkgdesc = Provides useful functions commonly found on BSD systems like strlcpy()
+ pkgver = 0.7.0
+ pkgrel = 1
+ url = http://libbsd.freedesktop.org
+ arch = x86_64
+ license = custom
+ makedepends = gcc-multilib
+ depends = lib32-glibc
+ depends = libbsd
+ source = http://libbsd.freedesktop.org/releases/libbsd-0.7.0.tar.xz
+ sha256sums = 0f3b0e17e5c34c038126e0a04351b11e23c6101a7d0ce3beeab29bb6415c10bb
+
+pkgname = lib32-libbsd
+
diff --git a/MKPKG b/MKPKG
new file mode 100644
index 00000000000..039a175c120
--- /dev/null
+++ b/MKPKG
@@ -0,0 +1,9 @@
+arch=('x86_64')
+pkgname=('lib32-libbsd')
+
+build () {
+ shift
+ ionice -c 3 chrt -b 0 sudo multilib-build -- $*
+}
+
+# vim: ts=2 sw=2 et:
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d9861ca548e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: josephgbr <rafael.f.f1@gmail.com>
+# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
+
+pkgname=lib32-libbsd
+pkgver=0.7.0
+pkgrel=1
+pkgdesc='Provides useful functions commonly found on BSD systems like strlcpy()'
+arch=('x86_64')
+url='http://libbsd.freedesktop.org'
+license=('custom')
+depends=('lib32-glibc' 'libbsd')
+makedepends=('gcc-multilib')
+source=("http://libbsd.freedesktop.org/releases/libbsd-${pkgver}.tar.xz")
+sha256sums=('0f3b0e17e5c34c038126e0a04351b11e23c6101a7d0ce3beeab29bb6415c10bb')
+
+build() {
+ cd libbsd-${pkgver}
+
+ export CC='gcc -m32'
+ export CXX='g++ -m32'
+ export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+
+ ./configure \
+ --prefix='/usr' \
+ --libdir='/usr/lib32'
+ make
+}
+
+package() {
+ cd libbsd-${pkgver}
+
+ make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/usr/{include,share/man}
+
+ install -dm 755 "${pkgdir}"/usr/share/licenses
+ ln -s libbsd "${pkgdir}"/usr/share/licenses/lib32-libbsd
+}
+
+# vim:set ts=2 sw=2 et: