Commit 29570a54 authored by Francesco Colista's avatar Francesco Colista

main/minetest: mv pkgdir to subpkgdir in server function

parent 7294a771
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=minetest
pkgver=0.4.10
pkgrel=1
pkgrel=2
pkgdesc="An infinite-world block sandbox game and a game engine"
url="http://minetest.net/"
arch="all"
......@@ -45,16 +45,16 @@ build() {
make || return 1
mkdir "${_builddir}"/.build_server
cd "${_builddir}"/.build_server
cmake -DCUSTOM_BINDIR=/usr/bin \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCUSTOM_DOCDIR="/usr/share/doc/minetest" \
-DCUSTOM_SHAREDIR="/usr/share/minetest" \
-DBUILD_CLIENT=0 \
-DBUILD_SERVER=1 \
-DENABLE_REDIS=1 \
-DRUN_IN_PLACE=0 \
..
make || return 1
cmake -DCUSTOM_BINDIR=/usr/bin \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCUSTOM_DOCDIR="/usr/share/doc/minetest" \
-DCUSTOM_SHAREDIR="/usr/share/minetest" \
-DBUILD_CLIENT=0 \
-DBUILD_SERVER=1 \
-DENABLE_REDIS=1 \
-DRUN_IN_PLACE=0 \
..
make || return 1
}
common() {
......@@ -72,11 +72,11 @@ package() {
server(){
mkdir -p "${subpkgdir}/usr/bin"
cd "${_builddir}"
install -m644 -D $pkgname.conf.example "$pkgdir"/etc/$pkgname/$pkgname.conf
install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
install -m644 -D $pkgname.conf.example "$subpkgdir"/etc/$pkgname/$pkgname.conf
install -D -m755 "$srcdir"/$pkgname.initd \
"$subpkgdir"/etc/init.d/$pkgname || return 1
install -D -m644 "$srcdir"/$pkgname.confd \
"$subpkgdir"/etc/conf.d/$pkgname || return 1
cp bin/minetestserver ${subpkgdir}/usr/bin
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment