summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b7468f1247bcb2c40c859c1a29b1ded52c8593f (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
32
33
34
35
36
37
38
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=fsarchiver-git
pkgver=0.8.7.r3.g03089f4
pkgrel=1
pkgdesc="Filesystem archiver for Linux"
arch=('i686' 'x86_64')
url="https://www.fsarchiver.org/"
license=('GPL2')
depends=('glibc' 'bzip2' 'e2fsprogs' 'libgcrypt' 'lz4' 'lzo' 'xz' 'zlib' 'zstd')
makedepends=('git')
provides=("fsarchiver=$pkgver")
conflicts=('fsarchiver')
source=("git+https://github.com/fdupoux/fsarchiver.git")
sha256sums=('SKIP')


pkgver() {
  cd "fsarchiver"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "fsarchiver"

  ./autogen.sh
  ./configure \
    --prefix="/usr" \
    --sbindir="/usr/bin"
  make
}

package() {
  cd "fsarchiver"

  make DESTDIR="$pkgdir" install
}