summaryrefslogtreecommitdiffstats
path: root/main/augeas/APKBUILD
blob: 607b531fc27bd1ccbf82984a340cb53920c326d3 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=augeas
pkgver=1.4.0
pkgrel=0
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-allow-partial-quoting-mixing-multiple-styl.patch
	0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
	0003-Shellvars-guard-against-comments.patch
	0004-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
	0005-Shellvars-allow-quotes-in-loop-conditions.patch
	0006-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
	0007-Shellvars-Allow-almost-any-command.patch
	0008-Shellvars-test-case-for-wrapping-command-arguments.patch
	0010-Shellvars-allow-the-builtin.patch
	0011-Shellvars-allow-command-specific-environment-variabl.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
0b7d8ef1d472a1cd3b5742afcbc40c7b  0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
51c15f48a3086aedcb9b50c379396e9a  0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
3983d4f2c87fdc3a7462648bf28ac1f7  0003-Shellvars-guard-against-comments.patch
99230241ab44da842ae551ee1fd21acd  0004-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
1618007011bc4cb767d8a2b2e419d223  0005-Shellvars-allow-quotes-in-loop-conditions.patch
6ea468c64e0fa8c70eb3439a8650900f  0006-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
559ce327e30c663ac13a9d654d95ab36  0007-Shellvars-Allow-almost-any-command.patch
f65d801a398dd8124b59f9db8b65ffdb  0008-Shellvars-test-case-for-wrapping-command-arguments.patch
07fcbed83f7f507beeac919aa96eb7c4  0010-Shellvars-allow-the-builtin.patch
4bfc55219b2a1284b84c739951221f63  0011-Shellvars-allow-command-specific-environment-variabl.patch"
sha256sums="659fae7ac229029e60a869a3b88c616cfd51cf2fba286cdfe3af3a052cb35b30  augeas-1.4.0.tar.gz
3824c87fca915f2ace1acbcbaed075d8e77268d239d5159aa8603907558f638f  0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
e05119d39bba5dd49bf6fa887f38ba3825e308efd9e8dc491694414f740b9737  0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
65968c3e23dd711757aa991f7f5c27b9d72754d73310f585c43896e8e086d7b8  0003-Shellvars-guard-against-comments.patch
f266d39442cdbc4a173cbe79acf37831e822da49989ab7336b5cf23d1cfebf0c  0004-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
8d81847ca3c3a3d9d4a22cf3022ad03b4dc09e02acddd2a7dbe694c9fa2ae547  0005-Shellvars-allow-quotes-in-loop-conditions.patch
82ac0494819f6b97587c1028a468b7d29d1abcd92ba81ea991c4c830b4cdb813  0006-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
182e6e511e21de8379cee76f14bc16ce999a5dd1a8cecbef6ea67ee7d7a471f1  0007-Shellvars-Allow-almost-any-command.patch
ef71befc9759945fc953b28c7e81db63057a58297c8dd9642d52ec12e77f105e  0008-Shellvars-test-case-for-wrapping-command-arguments.patch
13017bf58ec6d7d72d2dd5954d2636f47147207543ccd9537bb08e16ae032406  0010-Shellvars-allow-the-builtin.patch
61bffc11faf4442f23c22b3a06c329284cfa75ca9db5d27b60ac528dbedc3ba3  0011-Shellvars-allow-command-specific-environment-variabl.patch"
sha512sums="182457698e51be89feadb16879bae2f2413a5761127efb63a9b7ef30806f4059bca614e8c9627b0c7a010b9ec9c03c85161e655bdb2902f7cf43e89b66e312db  augeas-1.4.0.tar.gz
2a231a4f5db8c86b2710e83d4c74062a67980812df367276fc4876ccb01799881da98d95f0385972a7c229e83c18a758c67e7d5a9bef03fe8e3bd549136dcfc9  0001-Shellvars-allow-partial-quoting-mixing-multiple-styl.patch
af2c9021f4f1286e449b0bcb3e9bee781aa7b9be2835fd48cc3fe4e2ac50d4979af06edc6272fd4fc08eaa93a7e7cc77472ca6f9b093090443657630a6512b5a  0002-Shellvars-allow-wrapping-loop-condition-to-multiple-.patch
2297640506106bca6f1624474a87fcfc35297570e8bcb877b9ef3f955949346a6a0b542a3642af27bcc399d1e9f439ddcf097ccd59719f38810f9c2df0879943  0003-Shellvars-guard-against-comments.patch
198aa60cd13dc18a07b3d9468e61616201632a100c008fecfbb25a5bd6d08fc37fc376522f0dff5998a78ac050902113d78f5f6342683049ed4710641cebc6b0  0004-Shellvars-allow-wrapping-builtin-arguments-to-multip.patch
4f03a4a3c196d7639bf2e68aff4d587f157e2a5e6ecdc9eb62f08eb983e0ac130380b581c6fec9bdc0539c1ce5356af389a7744c8df6f6e7a76faeef160ab1b2  0005-Shellvars-allow-quotes-in-loop-conditions.patch
b19af8a4bb0ab542b449f50ace8ce9ebb83619bb5587b38f012e98bdf5de6ce9673f12f3af26ac147ccf95d036fa60c437e5f0dbf504016b0831ffcb97ab3962  0006-Shellvars-case-support-quotes-and-spaces-in-pattern-.patch
c7a7ddc3635371a74ac6b943e5b1adeab8960dc0a2d38625d2c1801ab88a60670eb8ff30b1f0938a461519b1b3199273b91e734c3b368c1d500653d5b6b82a0a  0007-Shellvars-Allow-almost-any-command.patch
798201a25b3f42e4cfcc071e7066a4a20492f58574cd7baeea14a60569663d2b2775d6afb361900057f5add61be8e6e2a7e5b2ca395711fd13c30fce2590d5cf  0008-Shellvars-test-case-for-wrapping-command-arguments.patch
9204f19e3234fc3be5bc59a374f9ac943494c1ee37a3c9c88186e2b6c1780e8376517108fe4a2567c6315bdb475ba5f492f9cb61ff569f79054ed17902368149  0010-Shellvars-allow-the-builtin.patch
37c1cf7c3e247e8acb73c956a2605ffb6ceadf2f3d3170a9d0c64059a9532830da2f11d105994fcee001138cc91e2432a2fb6f5ee012d98efc99b4b439bde459  0011-Shellvars-allow-command-specific-environment-variabl.patch"