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

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


Hi!
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
pkgname=zeya-git
pkgver=0.6
pkgrel=1
pkgdesc="Bring your music anywhere"
arch=('i686' 'x86_64')
url="http://web.psung.name/zeya/"
license=('GPL3')
depends=('python2' 'fastoggenc')
makedepends=('git' 'python2')
optdepends=('mpg123: for decoding MP3 files'
    'flac: for decoding FLAC files')
conflicts=('zeya')
_gitroot="http://web.psung.name/git/zeya.git"
_gitname="zeya"

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

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

  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,
Martin

-- 
-msx


More information about the aur-general mailing list