[aur-general] My first PKGBUILD, need some guidance

Martin Cigorraga msx at archlinux.us
Tue Aug 14 03:03:28 EDT 2012

I'm creating my first PKGBUILD for Zeya, a nice app that lets you play your
local music from any browser without any extra plugin(s) and I'm a bit
disoriented about how to handle its installation.
Unlike most application Zeya does not need to be compiled to run, just run
it's main Python file and that's all, so, how should I proceed? I think
about copying the whole directory structure after cloning it to
/usr/bin/zeya-git and then create a symlink to the executable to
/usr/bin/zeya but I'm not sure if this is the right procedure.
So far this is how the PKGBUILD is being shaped:

# Submitter: Martin C. msx at archlinux.us
pkgdesc="Bring your music anywhere"
arch=('i686' 'x86_64')
depends=('python2' 'fastoggenc')
makedepends=('git' 'python2')
optdepends=('mpg123: for decoding MP3 files'
    'flac: for decoding FLAC files')

build() {
cd "$srcdir"
  msg "Connecting to GIT server...."

  if [[ -d "$_gitname" ]]; then
    cd "$_gitname" && git pull origin
    msg "The local files are updated."
    git clone "$_gitroot" "$_gitname"

  msg "GIT checkout done or server timeout"
  msg "Starting build..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

package() {


I think I can put all the instructions to create the directory under
/usr/bin and to copy all the needed files in the package() section butI'm
unsure about it.
As you see this is a very basic question - for a very basic package.

Thanks in advance,


More information about the aur-general mailing list