mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=('lib32-udev')
|
|
pkgver=181
|
|
pkgrel=2
|
|
arch=('x86_64')
|
|
pkgdesc="The userspace dev tools (udev) (32-bit)"
|
|
url="http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html"
|
|
license=('GPL')
|
|
options=(!makeflags !libtool)
|
|
depends=('lib32-glibc' 'lib32-glib2' 'lib32-acl' 'lib32-libusb-compat' 'udev')
|
|
makedepends=('lib32-kmod' 'gcc-multilib' 'coreutils' 'lib32-util-linux' 'pciutils' 'kernel26' 'gperf' 'libxslt')
|
|
source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev-$pkgver.tar.bz2)
|
|
md5sums=('135c5acfd371febc5ed8326d48028922')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd $srcdir/udev-$pkgver
|
|
|
|
./configure --libdir=/usr/lib32 \
|
|
--disable-introspection \
|
|
--prefix=/usr \
|
|
--with-rootprefix= \
|
|
--sysconfdir=/etc \
|
|
--libexecdir=/lib32 \
|
|
--disable-introspection \
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
|
|
cd $srcdir/udev-$pkgver
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
#rm -rf ${pkgdir}/usr/{etc,include,lib,libexec,sbin,share}
|
|
#rm -rf ${pkgdir}/usr/lib32/girepository*
|
|
rm -rf "${pkgdir}"/{etc,lib32,lib,usr/{include,lib,bin,share}}
|
|
}
|