You are not logged in.

#1 2015-03-01 22:49:59

tjackiseN
Member
Registered: 2015-03-01
Posts: 2

[SOLVED] Custom PKGBUILD results in empty package

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

#2 2015-03-01 22:59:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Custom PKGBUILD results in empty package

make DESTDIR="$pkgdir" install

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-03-02 01:43:14

tjackiseN
Member
Registered: 2015-03-01
Posts: 2

Re: [SOLVED] Custom PKGBUILD results in empty package

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

#4 2015-03-02 02:16:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Custom PKGBUILD results in empty package

Cool. Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB