diff options
author | prspkt <prspkt@protonmail.com> | 2018-03-27 16:10:02 +0000 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-03-28 23:30:07 +0200 |
commit | 30f1caf17feaf75a58ed4195ec1f803f5916ca1c (patch) | |
tree | 38c8069f6908f971c2a02075cb3e9d441ab21352 /main/f2fs-tools | |
parent | 855948d4174f94c6b3bdee2f6ed647fabe240c2a (diff) | |
download | aports-30f1caf17feaf75a58ed4195ec1f803f5916ca1c.tar.bz2 aports-30f1caf17feaf75a58ed4195ec1f803f5916ca1c.tar.xz |
main/f2fs-tools: modernize
Diffstat (limited to 'main/f2fs-tools')
-rw-r--r-- | main/f2fs-tools/APKBUILD | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/main/f2fs-tools/APKBUILD b/main/f2fs-tools/APKBUILD index 804884cd48..bc123546c3 100644 --- a/main/f2fs-tools/APKBUILD +++ b/main/f2fs-tools/APKBUILD @@ -16,9 +16,9 @@ subpackages="$pkgname-doc $pkgname-dev $pkgname-libs" source="http://dev.alpinelinux.org/archive/f2fs-tools/f2fs-tools-$pkgver.tar.gz " disturl="dev.alpinelinux.org:/archive/$pkgname/" -giturl=git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git +giturl="git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git" -_builddir="$srcdir"/f2fs-tools-$pkgver +builddir="$srcdir/$pkgname-$pkgver" snapshot() { local _format="tar.gz" mkdir -p "$srcdir" && cd "$srcdir" @@ -26,44 +26,36 @@ snapshot() { local _tag=v$pkgver msg "Creating git snapshot: $pkgname-$pkgver" git clone --branch $_tag --depth=1 \ - --bare $giturl ${pkgname}.git || return 1 + --bare $giturl ${pkgname}.git git --git-dir ${pkgname}.git archive \ --format=$_format \ -o $pkgname-$pkgver.$_format \ - --prefix=$pkgname-$pkgver/ $_tag \ - || return 1 + --prefix=$pkgname-$pkgver/ $_tag # upload to defined distfiles url - scp $pkgname-$pkgver.$_format $disturl || return 1 + scp $pkgname-$pkgver.$_format $disturl } 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 - libtoolize --force && aclocal && autoheader && autoconf \ - && automake --add-missing + default_prepare + cd "$builddir" + ./autogen.sh } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ - --prefix=/usr \ - || return 1 - make || return 1 + --prefix=/usr + make } package() { - cd "$_builddir" - make install DESTDIR="$pkgdir" || return 1 + cd "$builddir" + make install DESTDIR="$pkgdir" mkdir -p "$pkgdir"/usr/include install -m 644 include/f2fs_fs.h mkfs/f2fs_format_utils.h \ - "$pkgdir"/usr/include/ || return 1 + "$pkgdir"/usr/include/ } md5sums="722f620fb04fa1abfef050a5468d23f6 f2fs-tools-1.6.1.tar.gz" |