aboutsummaryrefslogtreecommitdiffstats
path: root/main/augeas/APKBUILD
blob: 8c629502267215c7faeabd413de4eb0ce46f5f5d (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=augeas
pkgver=1.3.0
pkgrel=4
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-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch
	0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch
	0001-Dnsmasq-add-structure-to-address-and-server-options.patch
	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
	0009-Shellvars-case-support-on-same-line-with-multiple-co.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="c8890b11a04795ecfe5526eeae946b2d  augeas-1.3.0.tar.gz
cf358f5ff6c222cebd443922bf7ab51d  0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch
e63c8127cf269ad6bb7756dbbf343b9d  0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch
b140791828aec2037c411164102ef8cd  0001-Dnsmasq-add-structure-to-address-and-server-options.patch
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
e48785687b03c48022426182fbba785e  0009-Shellvars-case-support-on-same-line-with-multiple-co.patch
07fcbed83f7f507beeac919aa96eb7c4  0010-Shellvars-allow-the-builtin.patch
4bfc55219b2a1284b84c739951221f63  0011-Shellvars-allow-command-specific-environment-variabl.patch"
sha256sums="80763031af76515a8ea66013ddc3c466742a15d2e907c7c8e2e3b7410262e2af  augeas-1.3.0.tar.gz
f025c4cf27dee9c59a5f4a0eede5e4843c4b28cea0d7c32ed7f07181d71acb47  0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch
8bcd28d8f7a41e81933c3be5e61257c1e4188442156ca25459a4a3acfa25d5f8  0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch
0cb29dfdef3f293c5a4db06704072a6672ce728c82d4b2a7260da341522efc37  0001-Dnsmasq-add-structure-to-address-and-server-options.patch
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
745e8d28d038f70b10fbf35d301a6d63e780a2a01ae4c5ff3bf207ce629b3d15  0009-Shellvars-case-support-on-same-line-with-multiple-co.patch
13017bf58ec6d7d72d2dd5954d2636f47147207543ccd9537bb08e16ae032406  0010-Shellvars-allow-the-builtin.patch
61bffc11faf4442f23c22b3a06c329284cfa75ca9db5d27b60ac528dbedc3ba3  0011-Shellvars-allow-command-specific-environment-variabl.patch"
sha512sums="92cc2cf83faa42e83621fe0f73fe9f7247d802f17da781e51d068056d20b1645de1f0ea0d5070c0d5729a3f6554d64a95e31111bf3e44b959386559619843e79  augeas-1.3.0.tar.gz
f495b8f98b08489b46188b5fbd5c571409c323433cf246eeb8daac054b473e61ff39fdbc438b29a37d0435c24ec5720533d064e28d614dd7c520d2b68bef4c7d  0001-Dns_Zone-new-lens-to-parse-DNS-zone-files.patch
3459aec9948aa8aa80877ffa35b13799e6be818c267e7a60a293d87c908e71399ff3ad856e98da1d4cfbba65b034996384868db86297cf3977307d77c44bca64  0002-Dns_Zone-allow-whitespace-at-the-end-of-the-line.patch
f2cdf6fcd84de4f86bc54d89292d3c4c19070b1c6d5149af6a8d7c49678e2a7527b6549ad114e5ccec53d4d9582814153732f69a4c0228243aac96c48a0e1d1d  0001-Dnsmasq-add-structure-to-address-and-server-options.patch
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
0c337e30c77bc41caa0d672cc8db47770a03f4e3ca661b7eacab55bfc66630eef66f23f70f74abc0357890ddf612117405f7512f0b2e993ec4c8e7bb6be2d7c0  0009-Shellvars-case-support-on-same-line-with-multiple-co.patch
9204f19e3234fc3be5bc59a374f9ac943494c1ee37a3c9c88186e2b6c1780e8376517108fe4a2567c6315bdb475ba5f492f9cb61ff569f79054ed17902368149  0010-Shellvars-allow-the-builtin.patch
37c1cf7c3e247e8acb73c956a2605ffb6ceadf2f3d3170a9d0c64059a9532830da2f11d105994fcee001138cc91e2432a2fb6f5ee012d98efc99b4b439bde459  0011-Shellvars-allow-command-specific-environment-variabl.patch"