aboutsummaryrefslogtreecommitdiffstats
path: root/main/e2fsprogs/APKBUILD
blob: 3fc86945733c88a453743c0eccbbb555ec5fe289 (plain) (blame)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=e2fsprogs
pkgver=1.43
pkgrel=2
pkgdesc="Standard Ext2/3/4 filesystem utilities"
url="http://e2fsprogs.sourceforge.net"
arch="all"
license="GPL LGPL MIT"
depends=
install=
depends_dev="util-linux-dev"
makedepends="$depends_dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc libcom_err $pkgname-libs $pkgname-extra"
source="http://downloads.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-$pkgver.tar.gz
	mke2fs-uninit_bg.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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-tls \
		--disable-nls \
		|| return 1

	make || return 1
}

package() {
	cd "$_builddir"
	make -j1 LDCONFIG=: DESTDIR="$pkgdir" install install-libs || return 1
	mv "$pkgdir"/sbin/* "$pkgdir"/usr/sbin/
	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 || return 1
	mv "$pkgdir"/usr "$subpkgdir"/
}

md5sums="83f3256fcf37dd6dd4acbb648a30625a  e2fsprogs-1.43.tar.gz
aec2304bbeb1d589e802cec78360db95  mke2fs-uninit_bg.patch"
sha256sums="8729c4a7d2e7bb194ea4ea76db5473d9d0161cc94ad1641c50d7d61910055f0a  e2fsprogs-1.43.tar.gz
38e62b1604601861cb4088030ae0569b325fab4a09c600bd14f17174a6a36e18  mke2fs-uninit_bg.patch"
sha512sums="206ccbadd01d2cebaf94e67b1f8f279b3d3f3a6e2b21dea9d97146693bf7df071bb942c2c64434b45f77816878483ddd3295554a2e309b6e897f5b8cc1d9c144  e2fsprogs-1.43.tar.gz
d27034edaa776879bbd218fefedc22e6e3af507d363877da99ecbda8c688f75017fde3e2a934c92ce16b6accedec7404da4a209f7f4e1e856b57983f99f1f964  mke2fs-uninit_bg.patch"