summaryrefslogtreecommitdiff
path: root/pcr-multilib/lib32-eudev/PKGBUILD
blob: 158f83de9281a318492ec14dc1a98cb453f54d6a (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
# Maintainer (Artix): Chris Cromer <cromer@artixlinux.org>
# Maintainer: David P. <megver83@parabola.nu>

_udevver=220
_pkgname=eudev

pkgname=lib32-eudev
pkgdesc="The userspace dev tools (udev) forked by Gentoo (32-bit)"
pkgver=3.2.5
pkgrel=1
arch=('x86_64')
url="http://www.gentoo.org/proj/en/eudev/"
license=('GPL')
depends=('lib32-glib2' 'lib32-glibc')
makedepends=('lib32-gcc-libs' 'lib32-util-linux' 'gobject-introspection' 'gperf' 'python2' 'gtk-doc')
provides=("lib32-udev=${_udevver}")
conflicts=("lib32-systemd")
options=(!makeflags !libtool)
source=("$pkgname-$pkgver.tar.gz::https://github.com/gentoo/eudev/archive/v${pkgver}.tar.gz")
sha256sums=('870920011285b919fca5c60eaa5670312eeffe3883dd8cf564cd1179fc639336')

build() {
    export CC="gcc -m32"
    export CXX="g++ -m32"
    export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

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

    make
}

package() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    make DESTDIR="${pkgdir}" -C src/libudev install
    make DESTDIR="${pkgdir}" -C src/shared uninstall
    rm -rf ${pkgdir}/usr/include
}