void-packages/srcpkgs/dar/template
2018-08-02 22:09:04 +02:00

48 lines
1.2 KiB
Bash

# Template file for 'dar'
pkgname=dar
version=2.5.16
revision=1
build_style=gnu-configure
configure_args="--disable-upx --disable-build-html"
hostmakedepends="automake gettext-devel gpgme-devel libtool pkg-config"
makedepends="acl-devel bzip2-devel e2fsprogs-devel libgcrypt-devel liblzma-devel
lzo-devel"
short_desc="Shell command that backs up directory trees and files"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://dar.linux.free.fr/"
distfiles="${SOURCEFORGE_SITE}/dar/dar-${version}.tar.gz"
checksum=e957c97101a17dc91dca00078457f225d2fa375d0db0ead7a64035378d4fc33b
conf_files="/etc/darrc"
if [ -n "$CROSS_BUILD" ]; then
configure_args+=" --with-gpgme-prefix=${XBPS_CROSS_BASE}/usr
ac_cv_lib_gcrypt_gcry_check_version=false"
LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib -lgcrypt"
fi
pre_configure() {
autoreconf -fi
}
do_check() {
# need to be run as root
:
}
libdar_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libdar-devel_package() {
short_desc+=" - development files"
depends="libdar>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}