mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/dar: new aport
http://dar.linux.free.fr/ Disk ARchive Co-authored-by: Rasmus Thomsen <oss@cogitri.dev>
This commit is contained in:
parent
3bf4e490b3
commit
e06c3e6cfd
35
testing/dar/APKBUILD
Normal file
35
testing/dar/APKBUILD
Normal file
@ -0,0 +1,35 @@
|
||||
# Maintainer: Simon Rupf <simon@rupf.net>
|
||||
pkgname=dar
|
||||
pkgver=2.6.8
|
||||
pkgrel=0
|
||||
pkgdesc="Disk ARchive"
|
||||
url="http://dar.linux.free.fr/"
|
||||
arch="all"
|
||||
license="GPL-2.0-or-later"
|
||||
options="!check" # the provided "make check" requires root permissions
|
||||
makedepends="zlib-dev bzip2-dev lzo-dev xz-dev libgcrypt-dev gpgme-dev
|
||||
e2fsprogs-dev librsync-dev curl-dev gettext-dev automake
|
||||
autoconf libtool libthreadar-dev"
|
||||
subpackages="$pkgname-doc $pkgname-lang $pkgname-libs $pkgname-dev"
|
||||
source="https://downloads.sourceforge.net/dar/dar-$pkgver.tar.gz
|
||||
configure-sys-xattr.patch
|
||||
fix-autoreconf.patch"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
build() {
|
||||
./configure --prefix=/usr --disable-dar-static --disable-static --disable-upx
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="a36c020a92154889821add12c51b5195bf7253f6b3edfa343ae359fea6b93a0b7f6fb1e6673198aa78e1682ed98102633c731a99456b38f0521774d386596da7 dar-2.6.8.tar.gz
|
||||
0635b62bc38d8493ae9b3631f0b4989996f5f631b93c7c9e9396bf12d4699f0fed1a507c52867651f9c2b88d9d6a72063389989153e9566cf62ea682580816e5 configure-sys-xattr.patch
|
||||
cd28d64c49afa3e648b2082f7f287221c9d407f0f86457c54c1fef090694e005e46caf29d89fcdc7a7cca6a73f9bb706ef233cbf87799942e404b881262437e8 fix-autoreconf.patch"
|
||||
21
testing/dar/configure-sys-xattr.patch
Normal file
21
testing/dar/configure-sys-xattr.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- ./configure.ac
|
||||
+++ ./configure.ac
|
||||
@@ -648,7 +648,7 @@
|
||||
[ AC_MSG_CHECKING([for Extended Attribute support])
|
||||
AC_MSG_RESULT([disabled])
|
||||
],
|
||||
- [ AC_CHECK_HEADERS([attr/xattr.h])
|
||||
+ [ AC_CHECK_HEADERS([attr/xattr.h sys/xattr.h])
|
||||
AC_CHECK_LIB(attr, [lgetxattr], [], [])
|
||||
AC_MSG_CHECKING([for Unix Extended Attribute support])
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[extern "C" {
|
||||
@@ -658,6 +658,9 @@
|
||||
#if HAVE_ATTR_XATTR_H
|
||||
#include <attr/xattr.h>
|
||||
#endif
|
||||
+ #if HAVE_SYS_XATTR_H
|
||||
+ #include <sys/xattr.h>
|
||||
+ #endif
|
||||
}]],
|
||||
[ lgetxattr((char *)0, (char *)0, (void *)0, 0); ])
|
||||
],
|
||||
10
testing/dar/fix-autoreconf.patch
Normal file
10
testing/dar/fix-autoreconf.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- a/configure.ac 2020-02-17 18:00:18.107774067 +0100
|
||||
+++ b/configure.ac 2020-02-17 18:00:33.294204580 +0100
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
AM_INIT_AUTOMAKE([subdir-objects])
|
||||
AM_GNU_GETTEXT([external])
|
||||
-AM_GNU_GETTEXT_VERSION
|
||||
+AM_GNU_GETTEXT_VERSION(0.18.3)
|
||||
XGETTEXT_EXTRA_OPTIONS='--keyword=dar_gettext'
|
||||
AM_ICONV
|
||||
Loading…
x
Reference in New Issue
Block a user