blob: ebd98c7940a7206f27025dcfab331fcd573af951 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=e2fsprogs
pkgver=1.41.9
pkgrel=3
pkgdesc="Standard Ext2/3/4 filesystem utilities"
url="http://e2fsprogs.sourceforge.net"
license="GPL LGPL MIT"
depends=
install="$pkgname.post-upgrade"
makedepends="util-linux-ng-dev pkgconfig"
subpackages="$pkgname-dev $pkgname-doc libcom_err"
source="http://downloads.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-$pkgver.tar.gz
0001-implement-com_right_r.patch"
depends_dev="util-linux-ng-dev"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
patch -p1 -i "$srcdir"/0001-implement-com_right_r.patch
}
build () {
cd "$_builddir"
./configure \
--mandir=/usr/share/man \
--enable-elf-shlibs \
--disable-fsck \
--disable-uuidd \
--disable-libuuid \
--disable-libblkid \
--disable-tls \
--disable-nls
make || return 1
}
package() {
cd "$_builddir"
make LDCONFIG=: DESTDIR="${pkgdir}" install install-libs || return 1
}
libcom_err() {
depends=
replaces="e2fsprogs"
mkdir -p "$subpkgdir"/lib "$subpkgdir"/usr/lib/
mv "$pkgdir"/usr/lib/libcom_err* "$subpkgdir"/usr/lib/
mv "$pkgdir"/lib/libcom_err* "$subpkgdir"/lib/
}
md5sums="52f60a9e19a02f142f5546f1b5681927 e2fsprogs-1.41.9.tar.gz
600bedf9a85cd197c39715b0be5cc5f7 0001-implement-com_right_r.patch"
|