diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-05-22 08:18:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-05-22 13:08:46 +0000 |
commit | 386a214b3a1b7586e4d37b94ae84d6830e159f52 (patch) | |
tree | 9f6ad37ec2977a564c47819340add467227c9dc0 /testing | |
parent | 7ee2363baf3fda4d5e66ae285a658b73d1fdd281 (diff) | |
download | aports-386a214b3a1b7586e4d37b94ae84d6830e159f52.tar.bz2 aports-386a214b3a1b7586e4d37b94ae84d6830e159f52.tar.xz |
testing/genext2fs: new aport
Tool for generating an ext2 filesystem as non-root
http://genext2fs.sourceforge.net/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/genext2fs/APKBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/testing/genext2fs/APKBUILD b/testing/genext2fs/APKBUILD new file mode 100644 index 0000000000..fef754425c --- /dev/null +++ b/testing/genext2fs/APKBUILD @@ -0,0 +1,49 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=genext2fs +pkgver=1.4.1 +pkgrel=0 +pkgdesc="Tool for generating an ext2 filesystem as non-root" +url="http://genext2fs.sourceforge.net/" +arch="all" +license="GPLv2" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/project/genext2fs/genext2fs/$pkgver/genext2fs-$pkgver.tar.gz" + +_builddir="$srcdir"/genext2fs-$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 \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="b7b6361bcce2cedff1ae437fadafe53b genext2fs-1.4.1.tar.gz" +sha256sums="404dbbfa7a86a6c3de8225c8da254d026b17fd288e05cec4df2cc7e1f4feecfc genext2fs-1.4.1.tar.gz" +sha512sums="1b9ec7044014423345ae6b09862ba6903f5b3e0f68fb8bbcf97daf2705471cc1633a9fdbc5e00afe1b191e1af7bed87bde2e538bc7365469218f2a00b062845c genext2fs-1.4.1.tar.gz" |