diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-30 15:21:00 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-10-30 15:21:00 +0000 |
commit | 537d93d69aeb4f910ea940b94cd4045813711ba0 (patch) | |
tree | b37e0cca0e922136027d17fb82ab46fdb42100db /main | |
parent | fb76340ed30b3f826104778a6bec5000ebeac959 (diff) | |
download | aports-537d93d69aeb4f910ea940b94cd4045813711ba0.tar.bz2 aports-537d93d69aeb4f910ea940b94cd4045813711ba0.tar.xz |
main/util-linux: build python binding to libmount
Diffstat (limited to 'main')
-rw-r--r-- | main/util-linux/APKBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/main/util-linux/APKBUILD b/main/util-linux/APKBUILD index 5669a2c8d0..b9006b0aa1 100644 --- a/main/util-linux/APKBUILD +++ b/main/util-linux/APKBUILD @@ -8,14 +8,14 @@ case $pkgver in *.*) _v=$pkgver;; esac -pkgrel=0 +pkgrel=1 pkgdesc="Random collection of Linux utilities" url="http://kernel.org/~kzak/util-linux/" arch="all" license="GPL2 GPL2+ LGPL2+ BSD Public Domain" depends= # use GNU sed til bb sed is fixed. Also GNU tar is needed -makedepends="zlib-dev sed ncurses-dev tar autoconf automake libtool" +makedepends="zlib-dev sed ncurses-dev tar autoconf automake libtool python-dev" install= options="suid" source="http://www.kernel.org/pub/linux/utils/util-linux/v${_v}/util-linux-$pkgver.tar.xz @@ -25,7 +25,7 @@ source="http://www.kernel.org/pub/linux/utils/util-linux/v${_v}/util-linux-$pkgv 0001-switch_root-use-typeof-instead-of-__SWORD_TYPE-for-s.patch " subpackages="$pkgname-doc $pkgname-dev libuuid libblkid libmount sfdisk cfdisk - mcookie blkid" + mcookie blkid py-libmount:_py" replaces="e2fsprogs util-linux-ng" _builddir="$srcdir/util-linux-$pkgver" @@ -69,7 +69,8 @@ package() { cd "$_builddir" make -j1 install DESTDIR="$pkgdir" # use pkg-config - rm -f "$pkgdir"/usr/lib/*.la + rm -f "$pkgdir"/usr/lib/*.la \ + "$pkgdir"/usr/lib/python*/site-packages/libmount/*.la } dev() { @@ -128,6 +129,12 @@ mcookie() { mv "$pkgdir"/usr/bin/mcookie "$subpkgdir"/usr/bin/ } +_py() { + pkgdesc="python bindings to libmount" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ +} + md5sums="cab3d7be354000f629bc601238b629b3 util-linux-2.25.2.tar.xz 7033d8ec10f6ff52c8120afbe9522490 fix-setenv-usage.patch 6196f1ce853dfaf717569c1e35555d6d ttydefaults.h |