blob: 572cecd8c64a2db702645b6dcf550cb9727fb77a (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=e2fsprogs
pkgver=1.44.5
pkgrel=0
pkgdesc="Standard Ext2/3/4 filesystem utilities"
url="http://e2fsprogs.sourceforge.net"
arch="all"
license="GPL-2.0-or-later LGPL-2.0 BSD-3-Clause MIT"
depends=""
depends_dev="util-linux-dev"
options="!check"
makedepends="$depends_dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc libcom_err $pkgname-libs $pkgname-extra"
source="https://www.kernel.org/pub/linux/kernel/people/tytso/$pkgname/v$pkgver/$pkgname-$pkgver.tar.xz
gnuc-prereq.patch
"
builddir="$srcdir/$pkgname-$pkgver"
build () {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--mandir=/usr/share/man \
--enable-elf-shlibs \
--enable-symlink-install \
--disable-fsck \
--disable-uuidd \
--disable-libuuid \
--disable-libblkid \
--disable-nls
make
}
package() {
cd "$builddir"
make -j1 MKDIR_P="install -d" DESTDIR="$pkgdir" install install-libs
mv "$pkgdir"/sbin/* "$pkgdir"/usr/sbin/
local i; for i in e2fsck mke2fs mkfs.* fsck.*; do
mv "$pkgdir"/usr/sbin/$i "$pkgdir"/sbin/
done
}
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/bin
mkdir -p "$subpkgdir"/usr/share
mv "$pkgdir"/usr/bin/compile_et "$pkgdir"/usr/bin/mk_cmds \
"$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/et "$pkgdir"/usr/share/ss \
"$subpkgdir"/usr/share
}
libcom_err() {
pkgdesc="Common error description library"
mkdir -p "$subpkgdir"/lib
mv "$pkgdir"/lib/libcom_err* "$subpkgdir"/lib/
}
extra() {
depends="$pkgname"
pkgdesc="Ext2/3/4 filesystem extra utilities"
mkdir -p "$subpkgdir"
rmdir "$pkgdir"/lib
mv "$pkgdir"/usr "$subpkgdir"/
}
sha512sums="c0faec90b2be81460d374c150be917cd6beb1d10dc7cd0c6c4747de19de9af1763e90d48aec5b3c0fbff1b59bf79a35f93536cd52e68d1e45d4db610e158bb2e e2fsprogs-1.44.5.tar.xz
155340b6fec21419fa9ca27ff1bd8e12f679013dd82f4dc0cd1feae2dbf143a942d6d4427a1e966e68fa37ecb282880ff5d07a3760ee8d6ac7f7c5e34a276735 gnuc-prereq.patch"
|