From 34bf64815d81c35225b0434f7430407e205315be Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Mon, 13 Jun 2016 19:31:09 -0500 Subject: lib32-kmod: add new package to [pcr] --- pcr/lib32-kmod/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pcr/lib32-kmod/PKGBUILD diff --git a/pcr/lib32-kmod/PKGBUILD b/pcr/lib32-kmod/PKGBUILD new file mode 100644 index 000000000..b2fe4b702 --- /dev/null +++ b/pcr/lib32-kmod/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer (Arch): Jesse Jaara +# Maintainer: Omar Vega Ramos + +pkgname=lib32-kmod +pkgver=22 +pkgrel=1 +pkgdesc="Linux kernel module handling" +arch=('x86_64') +url="http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary" +license=('GPL2') +depends=('lib32-zlib' 'lib32-xz') +makedepends=('gcc-multilib') +options=('!libtool') +source=("ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-$pkgver.tar.xz") +md5sums=('4371b847f3fbfaa4e9aa890ad616748f') + +build() { + export CC="gcc -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd "${srcdir}/kmod-${pkgver}" + + ./configure \ + --libdir=/usr/lib32 \ + --sysconfdir=/etc \ + --disable-tools \ + --with-zlib \ + --with-xz + + make +} + +package() { + cd "${srcdir}/kmod-${pkgver}" + + make DESTDIR="${pkgdir}" install + + # nuke manpages and headers + rm -rf "${pkgdir}"/usr/{share,include,bin} +} + + -- cgit v1.2.3-54-g00ecf