aboutsummaryrefslogtreecommitdiffstats
path: root/main/ufsutils/APKBUILD
blob: 604d0013d7c63f0393935be7d38df8e99de07a6e (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
# Maintainer:
pkgname=ufsutils
pkgver=8.2
pkgrel=0
pkgdesc="utilities to manage the UFS, UFS2 and FFS filesystems"
url="http://packages.debian.org/sid/ufsutils"
arch=""
license="BSD"
depends=""
depends_dev="libbsd-dev"
makedepends="$depends_dev libedit-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://ftp.de.debian.org/debian/pool/main/u/ufsutils/ufsutils_8.2.orig.tar.gz
	http://ftp.de.debian.org/debian/pool/main/u/ufsutils/ufsutils_8.2-3.debian.tar.gz
	uclibc-no-fstab.patch"

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

build() {
	cd "$_builddir"
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/lib "$pkgdir"/usr/include \
		"$pkgdir"/usr/sbin "$pkgdir"/usr/share/man/man8
	make DESTDIR="$pkgdir" prefix="/usr" install || return 1
}

md5sums="e36f879da29e227e4d6494afc0c13559  ufsutils_8.2.orig.tar.gz
82077eb8980d3f9567910f61892c56f1  ufsutils_8.2-3.debian.tar.gz
874a9b9fde380da5d27eda1a23880401  uclibc-no-fstab.patch"
sha256sums="6298d2a94fb601f6951bf81ce074e6af597e8867ac210d8ff73348aeb3738bd9  ufsutils_8.2.orig.tar.gz
6040ad18ddbf9fa37b87b084fe6cf19c50f63456d15b6726067c558f8383b795  ufsutils_8.2-3.debian.tar.gz
c81681efed7ccc420b8e0eb78d5c9f4a4fd313459ab4393744fd7eb3e41188fa  uclibc-no-fstab.patch"
sha512sums="f378372c2493c16fe8cb3977f4ed2d104e747895e97d7642d21b5e87a2a03ac696bbac093e534e13c2f1dc4638741edcbbb0ddec5abcbfa6b4f7401efbf7cf14  ufsutils_8.2.orig.tar.gz
7bc925e742eaf4e1837ca4b46afa7966490234492eeb40ad8fabf71550a79890f3294780c2dbdf3593a82fc8e0708cf4c72baba81f4fec9a884cfa545c8895c8  ufsutils_8.2-3.debian.tar.gz
0d4337183fd4af63905306096c335ef75b83b61a92e3f20437649bca7b303aedc5c29080bf9816e04e5e17e1506a0196a36f25a998a2fe620adb1f75b5bb1499  uclibc-no-fstab.patch"