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 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=minetest pkgname=minetest
pkgver=0.4.10 pkgver=0.4.10
pkgrel=1 pkgrel=2
pkgdesc="An infinite-world block sandbox game and a game engine" pkgdesc="An infinite-world block sandbox game and a game engine"
url="http://minetest.net/" url="http://minetest.net/"
arch="all" arch="all"
...@@ -45,16 +45,16 @@ build() { ...@@ -45,16 +45,16 @@ build() {
make || return 1 make || return 1
mkdir "${_builddir}"/.build_server mkdir "${_builddir}"/.build_server
cd "${_builddir}"/.build_server cd "${_builddir}"/.build_server
cmake -DCUSTOM_BINDIR=/usr/bin \ cmake -DCUSTOM_BINDIR=/usr/bin \
-DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_PREFIX=/usr \
-DCUSTOM_DOCDIR="/usr/share/doc/minetest" \ -DCUSTOM_DOCDIR="/usr/share/doc/minetest" \
-DCUSTOM_SHAREDIR="/usr/share/minetest" \ -DCUSTOM_SHAREDIR="/usr/share/minetest" \
-DBUILD_CLIENT=0 \ -DBUILD_CLIENT=0 \
-DBUILD_SERVER=1 \ -DBUILD_SERVER=1 \
-DENABLE_REDIS=1 \ -DENABLE_REDIS=1 \
-DRUN_IN_PLACE=0 \ -DRUN_IN_PLACE=0 \
.. ..
make || return 1 make || return 1
} }
common() { common() {
...@@ -72,11 +72,11 @@ package() { ...@@ -72,11 +72,11 @@ package() {
server(){ server(){
mkdir -p "${subpkgdir}/usr/bin" mkdir -p "${subpkgdir}/usr/bin"
cd "${_builddir}" cd "${_builddir}"
install -m644 -D $pkgname.conf.example "$pkgdir"/etc/$pkgname/$pkgname.conf install -m644 -D $pkgname.conf.example "$subpkgdir"/etc/$pkgname/$pkgname.conf
install -D -m755 "$srcdir"/$pkgname.initd \ install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1 "$subpkgdir"/etc/init.d/$pkgname || return 1
install -D -m644 "$srcdir"/$pkgname.confd \ install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1 "$subpkgdir"/etc/conf.d/$pkgname || return 1
cp bin/minetestserver ${subpkgdir}/usr/bin 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