summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 718166a30d56b95d93d11d267a6695092d61a4d8 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Maintainer     : Vincent Grande <shoober420@gmail.com>
# Contributor    : Eric Vidal <eric@obarun.org>
# Contributor    : Jean-Michel T.Dydak <jean-michel@obarun.org>

pkgname=lib32-eudev-git
pkgver=3.2.9
pkgrel=1
udevver=243git
pkgdesc="The userspace dev tools (udev) forked by Gentoo (32-bit)"
arch=('x86_64')
url="https://dev.gentoo.org/~blueness/eudev"
license=('GPL')
source=("git+https://anongit.gentoo.org/git/proj/eudev.git")
sha512sums=('SKIP')

depends=(
    'lib32-glib2'
    'lib32-glibc')
    
makedepends=(
    'lib32-gcc-libs'
    'gcc-multilib'
    'gobject-introspection'
    'gperf'
    'gtk-doc'
    'lib32-kmod')

provides=(
    "lib32-udev=${udevver}" 'libudev.so' 'lib32-libeudev' 'lib32-eudev')

conflicts=(
    'lib32-libeudev'
    'lib32-eudev')

options=(!makeflags !libtool)

pkgver() {
  cd eudev
  git describe --tags | sed 's/-/+/g'
}

build() {

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

    cd eudev

    if [ -f "Makefile" ];then
     msg2 "Cleaning up..."
     make clean
    fi

    ./autogen.sh
    ./configure \
        --prefix=/usr \
        --with-rootprefix=/usr \
        --sysconfdir=/etc \
        --libdir=/usr/lib32 \
        --bindir=/usr/bin \
        --sbindir=/usr/bin \
        --enable-introspection \
        --disable-manpages
    make
}

package() {

    cd eudev

    make DESTDIR="${pkgdir}" -C src/libudev install

    rm -rf ${pkgdir}/usr/include

}