-
Notifications
You must be signed in to change notification settings - Fork 1
/
template
101 lines (94 loc) · 2.67 KB
/
template
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
maintainer="nox"
pkgname="libarchive"
version=3.7.2
revision=3
short_desc="Library to read/write several different streaming archive formats"
makedepends+=" bzip2-devel"
makedepends+=" liblzma-devel"
makedepends+=" zlib-devel"
makedepends+=" $(vopt_if acl acl-devel)"
makedepends+=" $(vopt_if expat expat-devel)"
makedepends+=" $(vopt_if lz4 liblz4-devel)"
makedepends+=" $(vopt_if lzo lzo-devel)"
makedepends+=" $(vopt_if ssl openssl-devel)"
makedepends+=" $(vopt_if zstd libzstd-devel)"
hostmakedepends="pkgconf"
homepage="http://www.libarchive.org/"
license="BSD-2-Clause"
changelog="https://github.com/libarchive/libarchive/releases"
distfiles="https://github.com/libarchive/libarchive/releases/download/v$version/$pkgname-$version.tar.xz"
checksum="04357661e6717b6941682cde02ad741ae4819c67a260593dfb2431861b251acb"
build_style="gnu-configure"
configure_args+=" --disable-rpath"
configure_args+=" --without-libb2"
configure_args+=" --without-nettle"
configure_args+=" --without-xml2"
configure_args+=" $(vopt_enable acl)"
configure_args+=" $(vopt_enable acl xattr)"
configure_args+=" $(vopt_with expat)"
configure_args+=" $(vopt_with lz4)"
configure_args+=" $(vopt_with lzo lzo2)"
configure_args+=" $(vopt_with ssl openssl)"
configure_args+=" $(vopt_with zstd)"
bootstrap="yes"
# package build options
build_options+=" acl"
build_options+=" expat"
build_options+=" lz4"
build_options+=" lzo"
build_options+=" ssl"
build_options+=" zstd"
build_options_default+=" acl"
build_options_default+=" lz4"
build_options_default+=" ssl"
build_options_default+=" zstd"
pre_configure() {
export LIBS="-pthread"
}
do_check() {
case "$XBPS_TARGET_LIBC" in
*musl)
make check "$makejobs" ||
|| msg_warn "Tests can fail due to encoding conversions\n"
;;
*)
make check "$makejobs"
;;
esac
}
post_install() {
vlicense COPYING
}
bsdtar_package() {
replaces="bsdcpio>=0"
short_desc="BSD utilities using libarchive"
pkg_install() {
vmove usr/bin
vmove usr/share/man/man1
vmove usr/share/man/man5
# conflicts with mtree
mv "$PKGDESTDIR/usr/share/man/man5"/{mtree.5,libarchive-mtree.5}
}
}
bsdunzip_package() {
unset reverts
reverts+=" 20160115_1"
reverts+=" 20160115_2"
build_style="meta"
short_desc="BSD utilities using libarchive (transitional dummy package)"
depends="bsdtar>=${version}_$revision"
}
libarchive-devel_package() {
unset depends
depends+=" $makedepends"
depends+=" $sourcepkg>=${version}_$revision"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share
}
}
# vim: set filetype=sh foldmethod=marker foldlevel=0 nowrap: