You are not logged in.

#1 2012-07-26 20:55:08

exul
Member
Registered: 2012-07-26
Posts: 4

[SOLVED] Review ctags-go PKGBUILD

Hi

I created my first PKGBUILD and now I'd like to know if everything is fine. If yes I'll submit it to AUR:

# Maintainer: exul <exul  [at] v-net [dot] ch>

pkgname=ctags-go
pkgver=20120726
pkgrel=1
pkgdesc='Go support for exuberant ctags'
arch=('x86_64' 'i686')
license=('GPL')
depends=('glibc')
makedepends=('git')
url=('https://github.com/lyosha/ctags-go')

_gitroot="https://github.com/lyosha/$pkgname.git"

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

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

  msg "GIT checkout done or server timeout"

  msg "Starting configure..."
  ./configure

  msg "Starting make..."
  make
} 

package() {
  cd ${srcdir}/${pkgname}

  make prefix=${pkgdir}/usr install
}

I'd be happy to get your feedback.

Thanks

Last edited by exul (2012-07-27 06:24:33)

Offline

#2 2012-07-26 21:01:33

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,804
Website

Re: [SOLVED] Review ctags-go PKGBUILD

Assuming the stuff at the end is a copy and paste error, it worked perfectly for me.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#3 2012-07-26 21:03:53

exul
Member
Registered: 2012-07-26
Posts: 4

Re: [SOLVED] Review ctags-go PKGBUILD

Ups, you're right, that was a copy and paste error, thanks.

Offline

Board footer

Powered by FluxBB