Commit a96fe76c authored by Jakub Jirutka's avatar Jakub Jirutka Committed by Natanael Copa

main/fsarchiver: improve abuild, fix code-style

parent 079a3048
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment