# Description: Disk ARchive - a sophisticated backup utility for Linux
# URL: http://dar.linux.free.fr/
# Maintainer: Juergen Daubert, jue at crux dot nu
# Depends on: attr bzip2 curl lzo xz zlib zstd
# Optional: argon2 gpgme libgcrypt lz4

name=dar
version=2.7.14
release=1
source=(http://downloads.sourceforge.net/project/dar/dar/$version/$name-$version.tar.gz)

build() {
	cd $name-$version

	prt-get isinst gpgme || PKGMK_DAR+=' --disable-gpgme-linking'

	CONFIG_SHELL=/bin/bash \
	./configure $PKGMK_DAR \
		--prefix=/usr \
		--disable-nls \
		--enable-mode=64 \
		--disable-build-html

	make V=0
	make DESTDIR=$PKG install

	rm -r $PKG/usr/share/dar
}
