summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey D2015-07-05 10:58:46 +0300
committerAlexey D2015-07-05 10:58:46 +0300
commitd82e8ecbde7153db1a4b28ca82b010aac549ef42 (patch)
tree06c1b56be455d1cf40dcf441c51276040aa39a12
downloadaur-d82e8ecbde7153db1a4b28ca82b010aac549ef42.tar.gz
initial version
-rw-r--r--.SRCINFO25
-rw-r--r--PKGBUILD67
2 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..23b659e7f8f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = lib32-eudev-git
+ pkgdesc = The userspace dev tools (udev) forked by Gentoo (32-bit)
+ pkgver = 20150619
+ pkgrel = 1
+ url = https://github.com/gentoo/eudev
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ makedepends = gcc-multilib
+ makedepends = lib32-util-linux
+ makedepends = gobject-introspection
+ makedepends = gperf
+ depends = lib32-glib2
+ depends = eudev-git
+ conflicts = lib32-systemd
+ replaces = lib32-systemd
+ options = !makeflags
+ options = !libtool
+ source = git://github.com/gentoo/eudev.git
+ md5sums = SKIP
+
+pkgname = lib32-eudev-git
+ provides =
+ provides = lib32-systemd=
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..58055559e63
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Maintainer: Alexey D. <lq07829icatm@rambler.ru>
+# Contributor: Ivailo Monev <xakepa10@gmail.com>
+pkgname='lib32-eudev-git'
+pkgdesc="The userspace dev tools (udev) forked by Gentoo (32-bit)"
+pkgver=20150619
+pkgrel=1
+arch=('x86_64')
+url="https://github.com/gentoo/eudev"
+license=('GPL')
+depends=('lib32-glib2' 'eudev-git')
+makedepends=('git' 'gcc-multilib' 'lib32-util-linux' 'gobject-introspection' 'gperf')
+replaces=('lib32-systemd')
+conflicts=('lib32-systemd')
+options=(!makeflags !libtool)
+source=('git://github.com/gentoo/eudev.git')
+md5sums=('SKIP')
+_gitname="eudev"
+
+pkgver()
+{
+ cd "${srcdir}/${_gitname}"
+
+ # Date of last commit
+ git log -1 --format="%ci" HEAD | cut -d\ -f1 | tr -d '-'
+}
+
+build() {
+ cd "${srcdir}/${_gitname}"
+
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ if [ -f "Makefile" ];then
+ msg2 "Cleaning up..."
+ make clean
+ fi
+
+ msg2 "Configuring sources..."
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --with-rootprefix=/usr \
+ --sysconfdir=/etc \
+ --libdir=/usr/lib32 \
+ --sbindir=/usr/bin \
+ --disable-kmod \
+ --enable-gudev \
+ --enable-introspection \
+ --disable-manpages
+
+ msg2 "Compiling..."
+ make
+}
+
+
+package() {
+ cd "${srcdir}/${_gitname}"
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/etc
+ rm -rf "${pkgdir}"/usr/{bin,include,lib,share}
+
+ # Getting udev version
+ udevver=$(grep UDEV_VERSION configure.ac | egrep -o "[0-9]{3}")
+ provides+=("lib32-systemd=${udevver}")
+}
+