aboutsummaryrefslogtreecommitdiffstats
path: root/main/augeas/APKBUILD
blob: 0f050a77ab33c146ddf38c06958015fe0068eaa0 (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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=augeas
pkgver=1.4.0
pkgrel=3
pkgdesc="A configuration editing tool"
url="http://augeas.net"
arch="all"
license="LGPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev readline-dev libxml2-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-tests $pkgname-libs"
source="http://download.augeas.net/augeas-$pkgver.tar.gz
	0001-Shellvars-accept-and-builtins.patch
	0002-Shellvars-Add-test-for.patch
	0003-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
	0004-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
	0005-Shellvars-guard-against-comments.patch
	0006-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
	0007-Shellvars-allow-quotes-in-loop-conditions.patch
	0008-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
	0009-Shellvars-add-eval-builtin-support.patch
	0010-Shellvars-add-alias-builtin-support.patch
	0011-Shellvars-pattern-nodes-in-case-entries.patch
	0012-Shellvars-use-sto_to_semicol-in-condition-lens.patch
	0013-Shellvars-allow-and-constructs-after-condition.patch
	0014-Shellvars-Allow-almost-any-command.patch
	0015-Shellvars-support-pipes-in-commands.patch
	0016-Shellvars-allow-in-commands.patch
	0017-Shellvars-test-case-for-wrapping-command-arguments.patch
	0018-Shellvars-allow-command-specific-environment-variabl.patch
	0019-Shellvars-allow-wrapping-command-sequences.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
	make tests || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -rf "$pkgdir"/usr/lib/charset.alias
}

tests() {
	pkgdesc="Tests for Augeas lenses"
	arch="noarch"
	mkdir -p "$subpkgdir"/usr/share/augeas/lenses/dist/
	mv "$pkgdir"/usr/share/augeas/lenses/dist/tests \
		"$subpkgdir"/usr/share/augeas/lenses/dist/
}

libs() {
	pkgdesc="Libraries for augeas"
	replaces="augeas"
	mkdir -p "$subpkgdir"/usr/ "$subpkgdir"/usr/share/augeas/
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ || return 1
	mv "$pkgdir"/usr/share/augeas/lenses \
		"$subpkgdir"/usr/share/augeas/ || return 1
}

md5sums="a2536a9c3d744dc09d234228fe4b0c93  augeas-1.4.0.tar.gz
3392ae3abc40efe5d7c8ce4ce5738df8  0001-Shellvars-accept-and-builtins.patch
aa2f18bd6b439db9345d7492d260d5a7  0002-Shellvars-Add-test-for.patch
7ed3fd8d6541716cbb63c11db48de9e0  0003-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
1420d337f79a9960ed8c6e0d68587f48  0004-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
1a233f9d67f0e0c3063e253e3fd3f62b  0005-Shellvars-guard-against-comments.patch
0ddc164b5e0558b9a8c1e163c5806109  0006-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
afb986370fca48ca5d5c16c7b7ef6a3c  0007-Shellvars-allow-quotes-in-loop-conditions.patch
4fd047af91ebf6400fe34b7f2bae7667  0008-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
94c30b3ef837bbc16e4e8daf498ee0c6  0009-Shellvars-add-eval-builtin-support.patch
3e99adf29c5e4d228b5f7e1993e35ff4  0010-Shellvars-add-alias-builtin-support.patch
9d6302c8a13dc8d348768b2b00310197  0011-Shellvars-pattern-nodes-in-case-entries.patch
ba07705f460888555f7a7b7ff28d2136  0012-Shellvars-use-sto_to_semicol-in-condition-lens.patch
a1321510dec7d5ea3f76598b1e673a10  0013-Shellvars-allow-and-constructs-after-condition.patch
6481d28202a6ed3774f5275c9c23eb28  0014-Shellvars-Allow-almost-any-command.patch
6370c721ce09c29f2707f37e1cbe1ac5  0015-Shellvars-support-pipes-in-commands.patch
3ff071044714c89268935589a43d8315  0016-Shellvars-allow-in-commands.patch
685947f3c076d51fe268585442cee0d3  0017-Shellvars-test-case-for-wrapping-command-arguments.patch
c27de94c7097126f0ff0d3c72380563a  0018-Shellvars-allow-command-specific-environment-variabl.patch
a7709c66872d398a1a2688d0fa87e7ef  0019-Shellvars-allow-wrapping-command-sequences.patch"
sha256sums="659fae7ac229029e60a869a3b88c616cfd51cf2fba286cdfe3af3a052cb35b30  augeas-1.4.0.tar.gz
646bfcdd6b30f253d50354ba96070018fb3a9f4f123d7a0cfe25b01ec729b176  0001-Shellvars-accept-and-builtins.patch
8c59fe6a3d3bf1a52a5d110adb1547634c550ce2d318728755fb5ba33ef8c091  0002-Shellvars-Add-test-for.patch
c6c774342a77f6766e4ceceafe18aeccd05f695da6cfc8b5438e4939d8b8047a  0003-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
b84c69a6bc2b9de448c2f7b09b68dbac52b9b55cf81b7fd25d210bee1ad37ae3  0004-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
f2d514899a46902534a9c7a87f1074fda2b07c45deaeb0bac270decc7c7364ed  0005-Shellvars-guard-against-comments.patch
e735f982619ef9a623badd68e316e820d5e98f53dc3fb031fbef1918487a7073  0006-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
b41b2fe13eb9155da6ef2e310961009f6bf978e02a628315b5c0347cc19b54f6  0007-Shellvars-allow-quotes-in-loop-conditions.patch
63da3848ae0202c258e9ea4a5f8392f2b1fd83a1104e08da120ab0f9e50213d6  0008-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
f54a4f8c1b64cf405261c9959b40ab598084ab85dc05e5ab18103f17786d120d  0009-Shellvars-add-eval-builtin-support.patch
fa64fe69036cacb2d4e94a1ac978e4feb2eea44ed520760814486d1890c06bca  0010-Shellvars-add-alias-builtin-support.patch
063734ec0dc6eefc8435550372e3fed30695c35e68ae9e7406b32e2b4077a0fb  0011-Shellvars-pattern-nodes-in-case-entries.patch
6df998175ce3063f0ff027ccb931132a8ff3baca25dba2d518dd93a762727375  0012-Shellvars-use-sto_to_semicol-in-condition-lens.patch
a53617eb365e0721f9a2d56863039354b9a90255f94923280c43642b47eed34a  0013-Shellvars-allow-and-constructs-after-condition.patch
d3e954b69e29a80f1a08968dafd462fa413bbef1cc3755d9676ba7e95cd343aa  0014-Shellvars-Allow-almost-any-command.patch
714b8a1291eb0619230bb3563a78391abb66d1cbe6918ef23f373388e6374d1c  0015-Shellvars-support-pipes-in-commands.patch
266543e2988dd630d858a45885160b938c55839119472dff4afe66f656978863  0016-Shellvars-allow-in-commands.patch
a23f777e4b525e7de038de2234dccc732fb6704eeb5a01d1b7d2c5ec979c50bd  0017-Shellvars-test-case-for-wrapping-command-arguments.patch
e0ab2fdbcb48e0109e59d57505206f63684143847309166f82c1dd5b7385eba2  0018-Shellvars-allow-command-specific-environment-variabl.patch
a56ed7f49b4e562a6374783f984273aa505ccf4a7ca05bcc721904f684ead2bd  0019-Shellvars-allow-wrapping-command-sequences.patch"
sha512sums="182457698e51be89feadb16879bae2f2413a5761127efb63a9b7ef30806f4059bca614e8c9627b0c7a010b9ec9c03c85161e655bdb2902f7cf43e89b66e312db  augeas-1.4.0.tar.gz
b178c3b36a87d6eb07fed9016385fd8f179564984fb30f6fed7ba7a55ad50fbd100b27f704aa2fb7b95bd4f6d2f66509c8cb7fe57e45ba0a825a2b00992b4a6b  0001-Shellvars-accept-and-builtins.patch
0ef979edb7e4a7d7a889f8820c63a969bae7a589a2a5bea579ff7f6ed9804e91f542eada786c8c665f8f5a72b343e600dc79e63103d381e7a8e85126c564b871  0002-Shellvars-Add-test-for.patch
6fd8ccc3a3673f35864ad2187cd80524d02901ff76d8bdfc4e3dfa2fc9d1a56877c0e774945642a42c5fd1b9b756242e1261d1421521dde4f92ee26d1d00c6e9  0003-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
65eb4159e67ccfd2dc4afd9ed213061d4edfb286e7325aaf6f898c72b552cb6793c315c03ced32e5ffcba21ce2e40b810c04bdbce9f2fc21ecd184e3885a2e6f  0004-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
ae56a3d5eb9ba39b503abbbaf0d4d704afa22014b0f95c0fa1c2410706e975fd2a03c7790314a09667c9fbdba979bc47e0dbf1f8b62afb35666d0ce743dd73c7  0005-Shellvars-guard-against-comments.patch
c2b635fc45aaf6a585ecdd34408fa231428d812f9d79b2d5e3fe6366fa6a9d4a774731245c6f426f547c767594f4b825e393a669b79b2dffea44a3db6dbfc380  0006-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
150b79f481ead8e1c38ecc42af747dfa3906b283fc481f0e81ec08b2569aac2872800128ed1fbed3f9d1d98b7406620298c1f975f0cf29cac545020259f75f0a  0007-Shellvars-allow-quotes-in-loop-conditions.patch
1c8aceb221767c7f3de26d405764a1122058993ca6e6119508037720ef74a66a9c3637bb1b9e665cada26c782b59083f3f80219f06b0cc38177694b7798e7599  0008-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
06b7bd2c5d326dd816b49932af8d5a1ca0d1361188a958ec874b2130f195768a4fad43acc01c2768cfb803fef2199df12e2bc03c34f3263e4678416e41b234ab  0009-Shellvars-add-eval-builtin-support.patch
3bd5aeae956be4902046e51e4bf5200812c6c09b32e550cc186ed5fdeca4be13ffc515849383fb4d16d074459fce0b7a6accecd6bf86624d9b9f3d982b357197  0010-Shellvars-add-alias-builtin-support.patch
c3f8e2a42979125bea55b7759eccfd2173f57c9fe91fafe2cac6c6309b15fd6eaebc842550577f0b75665381b39ed10e644b995759ee4f9d8d261a48c1dc7b91  0011-Shellvars-pattern-nodes-in-case-entries.patch
52655bd119b9813e6b90c27975e30190ee8c1273ff929ae392e522ddc382830dd1e230f10bedaeb535fdf0d89aaafa2cb7d8fbbf8c31923105a19b76e1e8a095  0012-Shellvars-use-sto_to_semicol-in-condition-lens.patch
842d227eabe4ba9571f8d58ec5f936b7ffe6861bada9501f43458627dfe450691eb9589f1d483b83065ba20c5c5e1c571b9081f67f148c4a65474433f32439f8  0013-Shellvars-allow-and-constructs-after-condition.patch
ba80bbd54e08d0e2ba836334f1b2fddd5b375d4a5cdf2579dbc116297066187220c20d372fcfb4abe3c469c7720a20d877f226fb9215f079ce068c33c53526e5  0014-Shellvars-Allow-almost-any-command.patch
48aea6e755769969544c6627a0b1993db065dd98e3de07f9d30c8d6caec7aec9fff057c62403bab46dc0551f207879096e58fa4de68683d46685bcb4d96f25a7  0015-Shellvars-support-pipes-in-commands.patch
43d93a08719f616cb7b4656f9990384be29ca043a2b04cb7e8e6350d0a586402fe7a13d032b32c8e4ca7f04cd48ff15a95b58275ed276fad57e44bd5817dca8f  0016-Shellvars-allow-in-commands.patch
e46caf1b759e9a402cb27aa4bfa134896fd6816ba2614fa49f407ad8e9fe81b05e4e4fd1e128c8215cf0133aa3dbab000a7c5492c109e85dc23d76b686aa6413  0017-Shellvars-test-case-for-wrapping-command-arguments.patch
f852015ed1a4bbbca7241f291c6fa6f4bd6fb69ac1c3d62113c2f5bff7e07c4fbc82469ea69f8ac3d5cb905dd95e34e9ed05682d6568173eab1fe933737f5de5  0018-Shellvars-allow-command-specific-environment-variabl.patch
0b1ef0b3bbd22da7c35140ddb8b6855c33d93fb0f0004804a5acf2be55828434d5a719f6b94e256d4e6585bf0e4857b57f659a8ae557d5ad819fbc5d8b0e4264  0019-Shellvars-allow-wrapping-command-sequences.patch"