You are not logged in.

#1 2015-03-21 17:59:43

Wabuo
Member
Registered: 2015-03-21
Posts: 5

Custom PKGBUILD (my first) wont work need help :D

Hey I tried to make an PKGBUILD for this Geany Plugin.

That's how far i got ...

# Maintainer: F. Rieker (Wabuo) <rieker.f@googlemail.com>

pkgname=geany-plugin-clang-complete-git
_gitname=geany-clang-complete
pkgver=7296337
pkgrel=2
pkgdesc='A Geany plugin to provide code completion (C/C++) using clang.'
arch=('any')
url="https://github.com/notetau/${_gitname}"
license=('GPL')
depends=('geany' 'clang')
conflicts=('')
makedepends=('git')
provides=("${pkname}")
source=("git://github.com/notetau/${_gitname}.git")
md5sums=('SKIP')

pkgver(){
  cd "${srcdir}/${_gitname}"
  git describe --always | sed 's|-|.|g'
}

build(){
cd "${srcdir}/${_gitname}"
make install PREFIX="$pkgdir/usr/lib/geany/"
}

package(){
        cd "${srcdir}/${_gitname}"
	make DESTDIR="$pkgdir/" install        
}

I read the Wiki page but i still don't know what's wrong. sad
If you need further informations feel free to ask.

Last edited by Wabuo (2015-03-21 18:02:20)

Offline

#2 2015-03-21 18:08:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Custom PKGBUILD (my first) wont work need help :D

You don't 'make install' in the build part. As the name implies, it's for building.

What's not working wrt to this PKGBUILD?

Offline

#3 2015-03-21 18:19:48

Wabuo
Member
Registered: 2015-03-21
Posts: 5

Re: Custom PKGBUILD (my first) wont work need help :D

Oo that was my last idea i tried, forgot that there^^

Now I changed it to

# Maintainer: F. Rieker (Wabuo) <rieker.f@googlemail.com>

pkgname=geany-plugin-clang-complete-git
_gitname=geany-clang-complete
pkgver=7296337
pkgrel=2
pkgdesc='A Geany plugin to provide code completion (C/C++) using clang.'
arch=('any')
url="https://github.com/notetau/${_gitname}"
license=('GPL')
depends=('geany' 'clang')
conflicts=('')
makedepends=('git')
provides=("${pkname}")
source=("git://github.com/notetau/${_gitname}.git")
md5sums=('SKIP')

pkgver(){
  cd "${srcdir}/${_gitname}"
  git describe --always | sed 's|-|.|g'
}

#build(){
#cd "${srcdir}/${_gitname}"
#make install PREFIX="$pkgdir/usr/lib/geany/"
#}

package(){
        cd "${srcdir}/${_gitname}"
	make install PREFIX="/usr/lib/geany"        
}

Now i get an right error: cp: cannot create regular file '/usr/lib/geany/geanyclangcomplete.so': Permission denied sad

Offline

#4 2015-03-21 18:38:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Custom PKGBUILD (my first) wont work need help :D

Have a look at https://projects.archlinux.org/svntogit … ages/geany
You make the package and then you copy (install) it over. https://aur.archlinux.org/packages/ge/g … d/PKGBUILD

What's 'pkname'?

provides=("${pkname}")

The instructions on the github website are for manual building, so you adapt them for Arch standards.

Edit: Are you sure it shouldn't be

arch=('x86_64' 'i686')

instead of 'any'?

Last edited by karol (2015-03-21 18:43:47)

Offline

#5 2015-03-21 18:44:42

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: Custom PKGBUILD (my first) wont work need help :D

Oo, didn't know about setconf. That's pretty nice. smile

BTW you get permission denied because you must set the prefix to $pkgdir/usr/lib, not the file system itself.

Last edited by Alad (2015-03-21 18:46:13)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#6 2015-03-22 12:33:41

Wabuo
Member
Registered: 2015-03-21
Posts: 5

Re: Custom PKGBUILD (my first) wont work need help :D

Next question ...

$pkgdir points to /pkg/geany-plugin-clang-complete-git, first why i thought it should point to /pkg/ and how do i get en reverence to  /pkg/ ?

and thx for helping me making may first package! smile

Offline

#7 2015-03-22 13:04:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Custom PKGBUILD (my first) wont work need help :D

What exactly are you trying to do?
If you have a working PKGBUILD (something that correctly builds and installs this package), post it.

Offline

Board footer

Powered by FluxBB