You are not logged in.
I'm trying to create my own package for installing a software that I cannot find in the official repositories nor in the AUR. This is what I've come up with as of now:
# Maintainer: tjackiseN <mpghtjackisen at gmail dot com>
pkgname=theforgottenserver-git
_pkgname=forgottenserver
pkgver=20150218
pkgrel=1
pkgdesc="The Forgotten Server git version"
arch=('any')
url="https://github.com/otland/forgottenserver"
license=(GPL)
depends=('lua' 'gmp' 'mariadb-clients' 'boost')
makedepends=('git' 'cmake')
source=(git+https://github.com/otland/forgottenserver.git)
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git log -1 --format="%cd" --date=short | sed 's|-||g'
}
prepare() {
mkdir -p build
}
build() {
cd build
cmake "../$_pkgname" -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd build
make DESTDIR="$pkgdir"
}
The whole process seems to be working: the files are downloaded and then compiled, without any errors; but after the tar.xz package has been created, it is empty.
What is wrong with my PKGBUILD?
Last edited by tjackiseN (2015-03-04 20:23:37)
Offline
make DESTDIR="$pkgdir" install
Offline
I added the "install" part and I got an error about a missing target, so I patched the CMake file (added a target) and tried again. This time it worked great. Thanks.
Offline
Cool. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline