aboutsummaryrefslogtreecommitdiffstats
path: root/testing/e2fsimage/APKBUILD
blob: 18036a76f5953b937a555352ae6a6fb8eea22aeb (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=e2fsimage
pkgver=0.2.3
pkgrel=0
pkgdesc="create and populate an ext2/3/4 filesystem image as non-root user"
url="https://github.com/Ledest/e2fsimage"
arch="all"
license="BSD"
makedepends="e2fsprogs-dev e2fsprogs-extra"
subpackages="$pkgname-doc"
source="e2fsimage-$pkgver.tar.gz::https://github.com/Ledest/e2fsimage/archive/$pkgver.tar.gz"
builddir="$srcdir/e2fsimage-$pkgver"

build() {
	cd "$builddir"
	prefix=/usr mandir=/usr/share/man ./configure
	make
}

check() {
	cd "$builddir"
	./src/e2fsimage -f test.img -d ./src
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="b6bf97ae35af7c48063f7a6dc19af80fec4bdfcd4d9b6064168b5e5a37ead57b3a01772f659f5004d6d5f1217cccba6a019e1974f87503fcaf526a15d6187ed7  e2fsimage-0.2.3.tar.gz"