You are not logged in.
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.
If you need further informations feel free to ask.
Last edited by Wabuo (2015-03-21 18:02:20)
Offline
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
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
Offline
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
Oo, didn't know about setconf. That's pretty nice.
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
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!
Offline
What exactly are you trying to do?
If you have a working PKGBUILD (something that correctly builds and installs this package), post it.
Offline