blob: 2ab974d1a0beca18b0f945cac689c1d6f2c9f69c (
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
|
# Maintainer: Buce <dmbuce@gmail.com>
pkgname=clicraft-git
pkgver=0.0.11.r17.g1cb093c
pkgver() {
cd "$srcdir/$pkgname"
if ! git describe --tags 2>/dev/null; then
echo "0.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
fi | sed 's/-/.r/; s/-/./g'
}
pkgrel=1
pkgdesc="A command-line wrapper for a minecraft or bukkit server."
arch=("any")
url="https://github.com/DMBuce/clicraft"
license=('BSD')
depends=("bash" "tmux" "curl" "java-runtime")
makedepends=("git" "asciidoc")
#checkdepends=()
optdepends=("c10t: for map.sh action script" "mcexplore: for explore.sh action script")
provides=('clicraft')
conflicts=('clicraft')
backup=("etc/cron.d/clicraft"
"etc/logrotate.d/clicraft")
install="$pkgname.install"
source=("$pkgname::git+https://github.com/DMBuce/${pkgname%-git}.git"
#"$pkgname::git+ssh://git@mantrid/~/${pkgname%-git}.git"
"$pkgname.install"
"$pkgname.rc")
md5sums=('SKIP'
'631669f302dffa059b4bdc915374d3d6'
'dce883d9854859651b62b3477d0b5d4a')
build() {
cd "$srcdir/$pkgname"
autoconf
./configure --prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--with-mcexplore \
--with-c10t
make
}
package() {
cd "$srcdir/$pkgname"
make DESTDIR="$pkgdir" install
install -Dm755 "$startdir/$pkgname.rc" "${pkgdir}/etc/rc.d/$pkgname"
install -D -m 644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/clicraft/LICENSE"
}
# vim:set ts=2 sw=2 et:
|