aboutsummaryrefslogtreecommitdiffstats
path: root/main/augeas/APKBUILD
blob: 6b80769d56432578859fba74f7d08b7e9e708eb0 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=augeas
pkgver=1.4.0
pkgrel=1
pkgdesc="A configuration editing tool"
url="http://augeas.net"
arch="all"
license="LGPL2+"
depends=""
depends_dev="libxml2-dev"
makedepends="$depends_dev readline-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-pattern-nodes-in-case-entries.patch
	0010-Shellvars-use-sto_to_semicol-in-condition-lens.patch
	0011-Shellvars-allow-and-constructs-after-condition.patch
	0012-Shellvars-Allow-almost-any-command.patch
	0013-Shellvars-test-case-for-wrapping-command-arguments.patch
	0014-Shellvars-allow-command-specific-environment-variabl.patch
	0015-Shellvars-allow-and-constructs-after-command.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
	rmdir -p "$pkgdir"/usr/lib 2>/dev/null
	rm "$pkgdir"/usr/lib/*.la || return 1
}

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
dd18a5a32b334ef3b7e6e82058c61eaa  0001-Shellvars-accept-and-builtins.patch
e6a07b02ee5181b5957d6f568c70739f  0002-Shellvars-Add-test-for.patch
33696bba63ac77dd3b9135565ececd0e  0003-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
9957857fbf7b6e9d9e072854e983cc3e  0004-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
99fb6ebd2d87e6d5d51bd8247b1bfee8  0005-Shellvars-guard-against-comments.patch
fa2f0d09ab6256b349af9155bbd4fa23  0006-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
6d3804e6243360eeebaf0e3187d42c9c  0007-Shellvars-allow-quotes-in-loop-conditions.patch
f1e6bc097099d5cbb7f57514bd20c1cc  0008-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
2c2d132a5d91540ea8c4bee299fced52  0009-Shellvars-pattern-nodes-in-case-entries.patch
d4db1ad5da2e2f6a469c2fe56717948d  0010-Shellvars-use-sto_to_semicol-in-condition-lens.patch
5d60247adedb864c8daef3f72e3b02cc  0011-Shellvars-allow-and-constructs-after-condition.patch
5456ee24abf568f93feadd8993cefb70  0012-Shellvars-Allow-almost-any-command.patch
577da7030c48a4dfd793d81a834070b7  0013-Shellvars-test-case-for-wrapping-command-arguments.patch
b7f6583e3fe1859060cf212038c633d4  0014-Shellvars-allow-command-specific-environment-variabl.patch
345e0227b918c6ba5406e0d577aba9b0  0015-Shellvars-allow-and-constructs-after-command.patch"
sha256sums="659fae7ac229029e60a869a3b88c616cfd51cf2fba286cdfe3af3a052cb35b30  augeas-1.4.0.tar.gz
4e2b4b6aa5efa3af3cc936ddea2877d28501e617967d8fac028fa7859315952b  0001-Shellvars-accept-and-builtins.patch
50009cc329c6cfeb7f6f3823fd29e2d7a7215bd0b479c7525d22d5cff0f11131  0002-Shellvars-Add-test-for.patch
d38a0b9608fd8c00cc432ceb244908e413e5c660e8efba8594fc8ad1f59f1209  0003-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
6518600c844a088c961d2bf03df15099dc5f507b0e442aa7581e1f05c281f10d  0004-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
286b9b6bcfa52a1772b114088d75842c543ef548729b903ee359182fa3bb1e0f  0005-Shellvars-guard-against-comments.patch
b15ad47b8c6e8c02081a2342a965353f4182bd840f3ef7bc18db73e58159c655  0006-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
11b3f3a0ba74e04e5ac6f340cbb4b4fbcee5bd142534d408d80501c80ca32240  0007-Shellvars-allow-quotes-in-loop-conditions.patch
55a5c2ab166cbe88287e872c52d3d5e57a73bb587e04b3d2fe8ce6460a132817  0008-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
c9bf0528f74a4866661a16f41c1d5e81eb803e593b812b66effa27c04791cd28  0009-Shellvars-pattern-nodes-in-case-entries.patch
6392c4219f178a241ae4dbf268dbbee7562a0301f1cce7eb43dd82cad6a7cbfa  0010-Shellvars-use-sto_to_semicol-in-condition-lens.patch
105d148f50e534cc1786b0379d9c69536e922519d7536a297c08bc73526f641d  0011-Shellvars-allow-and-constructs-after-condition.patch
e4a7a876969166477b5f1517b4c920ff996ced8bc5a41115709e511c7c1a352c  0012-Shellvars-Allow-almost-any-command.patch
80469ddc2bbbd3b0468d2e7cb703794021b1aeff9a2efd62236048702fcd0b28  0013-Shellvars-test-case-for-wrapping-command-arguments.patch
df7c1ee1cd823dce1cb6707a362f453bbda0e6d334c1f50e3b0780fe79513947  0014-Shellvars-allow-command-specific-environment-variabl.patch
a5c93542a462c1ede1f2bc6b92da9506f18622208541a2b353d77a1fc89f593f  0015-Shellvars-allow-and-constructs-after-command.patch"
sha512sums="182457698e51be89feadb16879bae2f2413a5761127efb63a9b7ef30806f4059bca614e8c9627b0c7a010b9ec9c03c85161e655bdb2902f7cf43e89b66e312db  augeas-1.4.0.tar.gz
05680719679fed94a6b5032227b99d70706e704cfccfb1abffa80cabc7676d9578882558be146ca2fd182655dbaad76f64e392dc2eed0c22bc7340900258728b  0001-Shellvars-accept-and-builtins.patch
c3619e40b260e4bbb8ad12d545887b1e9f59d4e14fc909cfa63a4e61db8cfbeed34fade8c48f0a83bc8341b2f9a080953d4e46510d92fb33b72c7cc5e5a5fa5f  0002-Shellvars-Add-test-for.patch
e3602e45391149fc9dfd16d9bb9f24da200639d303275c0d5ff4a48bfc4d098d030eb8c695dab1ef467df27fb990567c951c21a0da6833d101edd9139a342000  0003-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
1200f683d0c26d8ef043bca958ce9b7d4e69f7a2321b569c6b436696a3fcf7f2325e2126e630e7699d25157bc95fe84db6e0dedf82f2bda08f6e1e8fd59d091e  0004-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
2be7ae4d668fed6f1ca33cd8aab772bb3aac897a2e455129dcd7e3d992aa405649a1f12a3ca0490e84d7c74ec2856fd3797e0ffa2381edf460ad0f01cb8bcd85  0005-Shellvars-guard-against-comments.patch
11304c8a1560bfaa532efc4d80fd6ef807089c299c3caf54d9156a107e7a520fc4a88d421166e5f4f270ca175cc8ab9c70b0ddad9c6afa8b28939d7e147930be  0006-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
9afe8fab05a89c5444ea19845aaeda996aecfe4937293b37c74c4ed58a11f480b16de8d196461e9b6d3a695f5748dd49b8d31668a734ddb03092cd66b26b685e  0007-Shellvars-allow-quotes-in-loop-conditions.patch
f01d11da984e4d8a3b736b70cbd4a06f0ae516bffe076de7c95557d685c939627ce8e801f08caad383b419b8494b0fa472b6adb36ae9ed96c6787f22f5726393  0008-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
787c8599bcbafabe2df45a70dfe8f85e1a1c91c78bd08b3c29e969c17f923ef988b435a071f8ce44fcd42769d16a5a49e51fc6aef06df82f40cbdf8b522577e8  0009-Shellvars-pattern-nodes-in-case-entries.patch
5b6e3167891809c91413d05159b51e1092f96dc3b25c4ab09c462ace21a840600f055b28ee6c17fd449f51788730540463815b934e9e7e0a0e2ccb4127868de5  0010-Shellvars-use-sto_to_semicol-in-condition-lens.patch
ce8078be725705068d12f0a7885543af2d5ba4915439d8a8c7caa25723faba3961d3cc3dd4f104adbac2ba15b79aa57bcf1e33e61e6f39e51ab9666c1196dbf7  0011-Shellvars-allow-and-constructs-after-condition.patch
534e72da2348d45ed737a2fe7d38c32facb15ecc47be29825ad30fbeac9e44387b463a708323b6a2d002c3ab5a589f70c7328b4e8e8a1d8e3e1bd54e2d11a820  0012-Shellvars-Allow-almost-any-command.patch
9c30da11cf0e278d0a68f6daad7d2ae546a91c45fdec637178ab78a2d61e6987e93d1ba7b2566c1974572458822d16befd69b11d0518191019e2ebdf60780013  0013-Shellvars-test-case-for-wrapping-command-arguments.patch
f668ec144e12ace83340a546331f12de21994c125f34dc3a62bbdc1aee502d28581e756ed04660b170a301925bfad756500ac6cb8d354fb678333909bdc1887a  0014-Shellvars-allow-command-specific-environment-variabl.patch
1793d37d31e8a9a98353f29f6150b2f0fd7e8bdf682511cda7f4dfc477b0f44713438fb35e40327099857c51288f54c18904264b9dc56b0bbe9912cc34acc487  0015-Shellvars-allow-and-constructs-after-command.patch"