summaryrefslogtreecommitdiff
path: root/pcr-multilib/lib32-eudev/PKGBUILD
blob: f1f1fc3b671408c52b4a708a0bf7004aa80eda43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer (Manjaro): artoo <artoo@manjaro.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

_udevver=220
_gentoo_uri="http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86"
_pkgname=eudev

pkgname=lib32-eudev
pkgdesc="The userspace dev tools (udev) forked by Gentoo (32-bit)"
pkgver=3.2
pkgrel=1
arch=('x86_64')
url="http://dev.gentoo.org/~blueness/eudev"
license=('GPL')
depends=('lib32-glib2' 'lib32-glibc' 'eudev-systemdcompat')
makedepends=('gcc-multilib' 'lib32-util-linux' 'gobject-introspection' 'gperf' 'python2' 'gtk-doc' 'lib32-kmod')
provides=("lib32-udev=${_udevver}" "lib32-systemd=${_udevver}")
conflicts=('lib32-systemd' 'libudev.so')
options=(!makeflags !libtool)
source=("${url}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('d84a5f7942393a009afc6af0bf31e98841147a0521b91ffbed161dccac303c25')

build() {

    export CC="gcc -m32"
    export CXX="g++ -m32"
    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

    cd "${srcdir}/${_pkgname}-${pkgver}"
    ./configure \
	--prefix=/usr \
        --with-rootprefix=/usr \
        --sysconfdir=/etc \
        --libdir=/usr/lib32 \
        --sbindir=/usr/bin \
        --with-modprobe=/usr/bin/modprobe \
        --enable-introspection \
	--disable-manpages
    make
}

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    #make DESTDIR="${pkgdir}" install
    make DESTDIR="${pkgdir}" -C src/shared uninstall
    make DESTDIR="${pkgdir}" -C src/libudev install
    #make DESTDIR="${pkgdir}" -C src/gudev install
    make DESTDIR="${pkgdir}" -C src/shared uninstall

    #rm -rf "${pkgdir}"/etc
    #rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
}