summaryrefslogtreecommitdiffstats
path: root/abs/core/util-linux/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/util-linux/PKGBUILD')
-rwxr-xr-xabs/core/util-linux/PKGBUILD81
1 files changed, 36 insertions, 45 deletions
diff --git a/abs/core/util-linux/PKGBUILD b/abs/core/util-linux/PKGBUILD
index 53aa53e..0f8936d 100755
--- a/abs/core/util-linux/PKGBUILD
+++ b/abs/core/util-linux/PKGBUILD
@@ -1,43 +1,26 @@
-# $Id: PKGBUILD 201467 2013-12-12 15:33:24Z dreisner $
+# $Id$
# Maintainer: Tom Gundersen <teg@jklm.no>
# Maintainer: Dave Reisner <dreisner@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
-pkgname=util-linux
-pkgver=2.24
-pkgrel=2
+pkgbase=util-linux
+pkgname=(util-linux libutil-linux)
+pkgver=2.25.2
+pkgrel=1
pkgdesc="Miscellaneous system utilities for Linux"
url="http://www.kernel.org/pub/linux/utils/util-linux/"
arch=('i686' 'x86_64')
-groups=('base' 'base-devel')
-depends=('pam' 'shadow' 'coreutils' 'glibc')
-optdepends=('python: python bindings to libmount')
makedepends=('systemd' 'python2')
-# checkdepends=('bc')
-conflicts=('util-linux-ng' 'eject')
-provides=("util-linux-ng=$pkgver" 'eject')
license=('GPL2')
options=('strip' 'debug')
-source=("ftp://ftp.kernel.org/pub/linux/utils/$pkgname/v2.24/$pkgname-$pkgver.tar.xz"
- 0001-lsblk-fix-D-segfault.patch
- 0001-pylibmount-correctly-import-from-pylibmount.so.patch
+source=("ftp://ftp.kernel.org/pub/linux/utils/$pkgname/v2.25/$pkgname-$pkgver.tar.xz"
uuidd.tmpfiles
- pam-login
- pam-common
- pam-su)
-backup=(etc/pam.d/chfn
- etc/pam.d/chsh
- etc/pam.d/login
- etc/pam.d/su
- etc/pam.d/su-l)
-install=util-linux.install
-
-prepare() {
- cd "$pkgname-$pkgver"
-
- patch -Np1 <"$srcdir"/0001-lsblk-fix-D-segfault.patch
- patch -Np1 <"$srcdir"/0001-pylibmount-correctly-import-from-pylibmount.so.patch
-}
+ pam-{login,common,su})
+md5sums=('cab3d7be354000f629bc601238b629b3'
+ 'a39554bfd65cccfd8254bb46922f4a67'
+ '4368b3f98abd8a32662e094c54e7f9b1'
+ 'a31374fef2cba0ca34dfc7078e2969e4'
+ 'fa85e5cce5d723275b14365ba71a8aad')
build() {
cd "$pkgname-$pkgver"
@@ -56,18 +39,22 @@ build() {
--enable-socket-activation \
--with-python=2
-# --enable-reset \ # part of ncurses
-# --enable-last \ # not compat
-
make
}
-#check() {
-# fails for some reason in chroot, works outside
-# make -C "$pkgname-$pkgver" check
-#}
+package_util-linux() {
+ conflicts=('util-linux-ng' 'eject')
+ provides=("util-linux-ng=$pkgver" 'eject')
+ depends=('pam' 'shadow' 'coreutils' 'libsystemd' 'libutil-linux')
+ optdepends=('python: python bindings to libmount')
+ install=util-linux.install
+ groups=('base' 'base-devel')
+ backup=(etc/pam.d/chfn
+ etc/pam.d/chsh
+ etc/pam.d/login
+ etc/pam.d/su
+ etc/pam.d/su-l)
-package() {
cd "$pkgname-$pkgver"
make DESTDIR="${pkgdir}" install
@@ -91,12 +78,16 @@ package() {
mv {,usr/}sbin/* usr/bin
rmdir sbin usr/sbin
-
+ ### create libutil-linux split
+ rm -rf "$srcdir/_libutil-linux"
+ install -dm755 "$srcdir"/_libutil-linux/usr/lib
+ cd "$srcdir"/_libutil-linux
+ mv "$pkgdir"/usr/lib/lib*.{a,so}* usr/lib
+}
+
+package_libutil-linux() {
+ pkgdesc="util-linux runtime libraries"
+ provides=('libblkid.so' 'libmount.so' 'libsmartcols.so' 'libuuid.so')
+
+ mv "$srcdir/_libutil-linux"/* "$pkgdir"
}
-md5sums=('4fac6443427f575fc5f3531a4ad2ca01'
- '1899fe3b853a5835c76cca0501b6b518'
- 'a18a1e89ffdfa3bc96ae976646a723ec'
- 'a39554bfd65cccfd8254bb46922f4a67'
- '4368b3f98abd8a32662e094c54e7f9b1'
- 'a31374fef2cba0ca34dfc7078e2969e4'
- 'fa85e5cce5d723275b14365ba71a8aad')