blob: 0479ccfe6f939336a240b5cd8db8762cbdef5539 (
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
|
pkgdesc="Takari Extensions for Apache Maven"
pkgname="maven-team"
pkgver=1
pkgrel=4
url="http://takari.io/book/30-team-maven.html"
arch=('any')
license=('Apache')
depends=('maven')
provides=('maven-team')
conflicts=('maven-team-git')
#
mavenCentralURL=http://repo1.maven.org/maven2
#
versionFileManager="0.8.3"
versionSmartBuilder="0.6.1"
versionLocalRepository="0.11.2"
#
artifactFileManager="takari-filemanager"
artifactSmartBuilder="takari-smart-builder"
artifactLocalRepository="takari-local-repository"
#
packageFileManager="$artifactFileManager-$versionFileManager.jar"
packageSmartBuilder="$artifactSmartBuilder-$versionSmartBuilder.jar"
packageLocalRepository="$artifactLocalRepository-$versionLocalRepository.jar"
#
source=(
"$mavenCentralURL/io/takari/takari-filemanager/$versionFileManager/$packageFileManager"
"$mavenCentralURL/io/takari/maven/takari-smart-builder/$versionSmartBuilder/$packageSmartBuilder"
"$mavenCentralURL/io/takari/aether/takari-local-repository/$versionLocalRepository/$packageLocalRepository"
)
noextract=(
"$packageFileManager"
"$packageSmartBuilder"
"$packageLocalRepository"
)
backup=(
)
md5sums=(
'SKIP'
'SKIP'
'SKIP'
)
options=('!strip')
# 1.
prepare() {
true
}
# 2.
build() {
true
}
# 3.
check() {
true
}
# 4.
package() {
# see https://www.archlinux.org/packages/community/any/maven/
local home="/opt/maven"
# see http://takari.io/book/30-team-maven.html#installation-and-usage
local source="$srcdir"
local target="$pkgdir/$home/lib/ext"
mkdir -p "$target"
cp -a -L "$source/." "$target/"
}
|