You are not logged in.
I've read most of the documentation about creating a new PKGBUILD and have created my own for foobillard.
The docs suggest posting the PKGBUILD here for feedback/criticism. How have I done for a first go? Anything I can do to improve? TIA
#Maintainer: Kabads <adam@monkeez.org>
pkgname=foobillard
pkgver=2.9
pkgrel=1
epoch=
pkgdesc="FooBillard is a billiards (pool) simulation under Linux/OpenGL. "
arch=('i686' 'x86_64')
url="http://foobillard.sourceforge.net"
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(http://downloads.sourceforge.net/foobillard/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=(b8b10d7d3ade07a9e0c497165beadbca) #generate with 'makepkg -g'
prepare() {
cd "$srcdir/$pkgname-$pkgver"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr
make
}
Offline
Maybe now you can fill the template with some data? What dependencies are needed to build the package? What other packages does it depend on? Do you need to use 'epoch'? If not, remove the entry. Are other options (groups, optdepends, provides, etc) needed at all? If not -- remove them. Are you going to create a package or only build the source code (the package group is missing).
:: Registered Linux User No. 223384
:: github
:: infinality-bundle+fonts: good looking fonts made easy
Offline
For starters, I think you're missing the package() step, the one where 'make install' stuff.
Offline
My bad - my terminal wasn't open for the last two functions:
check() {
cd "$srcdir/$pkgname-$pkgver"
make -k check
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}
Offline
You still need to fill in e.g. the makedependencies and dependencies i.e. the packages you have to have installed to build and run foobillard.
Try looking at what's mentioned on the website of the package http://foobillard.sourceforge.net/ and build it in clean chroot.
Offline
Your prepare() function does nothing, so you can remove that too.
Offline
Unrelated to the question of your PKGBUILD but...
% pacman -Ss foobillard
extra/foobillard++ 3.42beta-4
An OpenGL billiard game
I looked but did not see a clear requirement of dependencies from upstream (based on the contents of the source). Look at the Arch package I mentioned or failing that, you will have to take to google. Ubuntu, Debian, and Gentoo all offer packages for it. Start there.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
foobillard++ is a different package.
http://arm.konnichi.com/search/index.ph … ommunity=1 has foobillard 3 (as I've already mentioned in OP's previous thread) and the dependencies mentioned for that package are similar to the ones mentioned on the website.
Offline
Thanks - will get on to it - if these things are done, is this suitable for submission to aur?
Offline
@kabads - Not as-is... you need to figure out the deps and makedeps. Make sure you can build it in a clean chroot before submitting.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
If it builds and installs - sure.
I think you should post the final PKGBUILD here, so we can test it before you upload it to the AUR.
Offline
Thanks - not sure of make dependencies - it built with the base-devel package and without very little invervention from me.
Here's the edited PKGBUILD - if someone could try it for me that would be good.
Thanks
Offline
Doesn't build here. You forgot some deps at the very least, 'glu' 'libxaw' and 'libxi'. Even then, I'm getting undefined references to glCombiner* (a few dozen of them)
Also, you should not have the name of the package in the description. Get rid of "FooBillard is".
Edit, if you're able to make a package, run namcap on it. I'll help you track down missing deps.
Last edited by Scimmia (2013-05-16 06:21:36)
Online
@Scimmia - thanks - the namcap looks really good. I'll include those.
Offline
You also wanna build it in a lean chroot. See the link I posted.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Please use the wiki: https://wiki.archlinux.org/index.php/Creating_Packages
Offline