aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-08 19:16:17 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-08-09 11:52:35 +0000
commita96fe76ce143cf614163ab1122f8c718b6edd155 (patch)
tree9a63d932a5219c040acf2ec5bbd946b04bc8e45b /main
parent079a304860d44dc322028ccc42b9bbaba19d83c2 (diff)
downloadaports-a96fe76ce143cf614163ab1122f8c718b6edd155.tar.bz2
aports-a96fe76ce143cf614163ab1122f8c718b6edd155.tar.xz
main/fsarchiver: improve abuild, fix code-style
Diffstat (limited to 'main')
-rw-r--r--main/fsarchiver/APKBUILD44
1 files changed, 23 insertions, 21 deletions
diff --git a/main/fsarchiver/APKBUILD b/main/fsarchiver/APKBUILD
index 48f69426c9..36eb4e1fa6 100644
--- a/main/fsarchiver/APKBUILD
+++ b/main/fsarchiver/APKBUILD
@@ -4,36 +4,38 @@
pkgname=fsarchiver
pkgver=0.6.19
pkgrel=0
-pkgdesc='Safe and flexible file-system backup and deployment tool'
-arch=all
-url='http://www.fsarchiver.org/'
-license='GPL2'
+pkgdesc="Safe and flexible file-system backup and deployment tool"
+arch="all"
+url="http://www.fsarchiver.org/"
+license="GPL2"
subpackages="$pkgname-doc"
-makedepends='linux-headers attr-dev bzip2-dev e2fsprogs-dev lzo-dev xz-dev libgcrypt-dev zlib-dev'
-source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
- musl.patch"
-
-_builddir="$srcdir/$pkgname-$pkgver"
+makedepends="linux-headers attr-dev bzip2-dev e2fsprogs-dev lzo-dev xz-dev libgcrypt-dev zlib-dev"
+source="https://github.com/fdupoux/fsarchiver/releases/download/$pkgver/$pkgname-$pkgver.tar.gz
+ musl.patch"
+builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- cd "$_builddir"
- update_config_sub || return 1
- patch -p1 -i "$srcdir"/musl.patch
+ cd "$builddir"
+
+ default_prepare || return 1
+ update_config_sub
}
build() {
- cd $srcdir/$pkgname-$pkgver
- ./configure \
- --build=$CBUILD \
- --host=$CHOST \
- --prefix=/usr \
- || return 1
- make
+ cd "$builddir"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ || return 1
+ make
}
package() {
- cd $srcdir/$pkgname-$pkgver
- make DESTDIR="$pkgdir" install
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install
}
md5sums="cd0807dbd5f575ed9c2fc066ed107841 fsarchiver-0.6.19.tar.gz