summaryrefslogtreecommitdiff
path: root/multilib/lib32-kmod/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-23 23:15:06 +0000
committerroot <root@rshg054.dnsready.net>2012-01-23 23:15:06 +0000
commitc6c657b8bcf062b5d19eff6298b7754c11838080 (patch)
treeed6a14e27d40adfcc821fe921e95aa9e9ab4585b /multilib/lib32-kmod/PKGBUILD
parent164067832916c8e59219e1b0f30d7d04618a536e (diff)
Mon Jan 23 23:15:06 UTC 2012
Diffstat (limited to 'multilib/lib32-kmod/PKGBUILD')
-rw-r--r--multilib/lib32-kmod/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/multilib/lib32-kmod/PKGBUILD b/multilib/lib32-kmod/PKGBUILD
new file mode 100644
index 000000000..5f860b7b3
--- /dev/null
+++ b/multilib/lib32-kmod/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 146696 2012-01-16 19:19:14Z dreisner $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+
+pkgname=lib32-kmod
+_pkgbasename=kmod
+pkgver=4
+pkgrel=1
+pkgdesc="Linux kernel module handling"
+arch=('x86_64')
+url="http://git.profusion.mobi/cgit.cgi/kmod.git"
+license=('GPL2')
+depends=('lib32-glibc' 'lib32-zlib' "$_pkgbasename")
+makedepends=('gcc-multilib')
+options=('!libtool')
+source=("http://packages.profusion.mobi/$_pkgbasename/$_pkgbasename-$pkgver.tar.xz")
+md5sums=('e14450a066a48accd0af1995b3c0232d')
+
+build() {
+ cd "$_pkgbasename-$pkgver"
+
+ export CC="gcc -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ ./configure \
+ --libdir=/usr/lib32 \
+ --sysconfdir=/etc \
+ --disable-tools \
+ --with-rootprefix= \
+ --with-zlib
+
+ make
+}
+
+package() {
+ make -C "$_pkgbasename-$pkgver" DESTDIR="$pkgdir" install
+
+ # nuke manpages and headers
+ rm -rf "$pkgdir"/usr/{share,include,bin}
+}
+
+# vim: ft=sh syn=sh et