You are not logged in.
Hi,
Could someone help me with a PKGBUILD for the GTK3 branch of the Guake drop down terminal?
It can be found on: https://github.com/Guake/guake/tree/gtk3
As a template I've used the AUR "guake-git" PKGBUILD. I also adjusted the dependancies, but I'm not sure about the build options.
pkgname=guake-gtk3
pkgver=86bc3a20fd
pkgrel=1
pkgdesc="Top-down terminal for Gnome"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/Guake/guake/tree/gtk3"
license=('GPL')
depends=('python2' 'pygtk' 'python-vte' 'python-notify' 'python-dbus' 'python-gconf' 'python-xdg')
makedepends=('git' 'intltool' 'python-dev' 'pygtk-dev' 'gconf2-dev')
conflicts=('guake')
provides=('guake')
#not sure about sections below...
source=("git://github.com/Guake/guake.git")
sha512sums=('SKIP')
install=guake.install
pkgver() {
cd "${srcdir}/${pkgname%-git}"
git describe --tags | sed 's,-,.,g'
}
build(){
cd "${srcdir}/${pkgname%-git}"
PYTHON=$(which python2) ./autogen.sh --prefix=/usr --sysconfdir=/usr/share --disable-static
make
}
package() {
cd "${srcdir}/${pkgname%-git}"
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
}Thanks in advance!
Last edited by VenomGameworld (2014-04-21 10:26:22)
Offline
What the hell are python-dev, pygtk-dev, and gconf2-dev? This isn't debian.
Why did you change some of the python deps from 2 to 3?
If you want to use the gtk3 branch, you need to specify that. See the Wiki page about VCS PKGBUILDs.
The pkgver function doesn't work. When there are no reachable tags, you have to do something different. See the wiki page I mentioned.
The build options look sane. Have you tried it?
Offline
Okay, I've changed the code to this:
pkgname=guake
pkgver=90
pkgrel=1
pkgdesc="Drop-down terminal for the GNOME desktop"
arch=('i686' 'x86_64')
url="https://github.com/Guake/guake/tree/gtk3"
license=('GPL')
depends=('gtk3' 'pygtk' 'python2' 'python2-dbus' 'python2-gconf' 'python2-notify' 'python2-xdg' 'xdg-utils' 'vte')
makedepends=('git' 'intltool' 'gnome-common')
conflicts=('guake')
provides=('guake')
source=('git+https://github.com/Guake/guake.git#branch=gtk3')
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
# Use the tag of the last commit
git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
build(){
cd "${srcdir}/${pkgname%-git}"
PYTHON=$(which python2) ./autogen.sh --prefix=/usr --sysconfdir=/usr/share --disable-static
make
}
package() {
cd "${srcdir}/${pkgname%-git}"
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
}but I still get the following errors:
==> Making package: guake 90-1 (vr apr 18 23:49:33 CEST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating guake git repo...
Fetching origin
==> Validating source files with sha512sums...
guake ... Skipped
==> Extracting sources...
-> Creating working copy of guake git repo...
Cloning into 'guake'...
done.
Branch makepkg set up to track remote branch gtk3 from origin.
Switched to a new branch 'makepkg'
==> Starting pkgver()...
fatal: No annotated tags can describe '86bc3a20fd2388dd879771d2acc4d722811bd28c'.
However, there were unannotated tags: try --tags.
==> Removing existing pkg/ directory...
==> Starting build()...
/usr/bin/gnome-autogen.sh
checking for autoreconf >= 2.53...
testing autoreconf... found 2.69
checking for glib-gettext >= 2.2.0...
testing glib-gettextize... found 2.38.2
checking for intltool >= 0.25...
testing intltoolize... found 0.50.2
checking for pkg-config >= 0.14.0...
testing pkg-config... found 0.28
Checking for required M4 macros...
Checking for forbidden M4 macros...
Processing ./configure.ac
Running glib-gettextize... Ignore non-fatal messages.
Copying file po/Makefile.in.in
Please add the files
codeset.m4 gettext.m4 glibc21.m4 iconv.m4 isc-posix.m4 lcmessage.m4
progtest.m4
from the /usr/share/aclocal directory to your autoconf macro directory
or directly to your aclocal.m4 file.
You will also need config.guess and config.sub, which you can get from
ftp://ftp.gnu.org/pub/gnu/config/.
Running intltoolize...
Running autoreconf...
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=no-portability
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability
autoreconf: running: /usr/bin/autoheader --force --warnings=no-portability
autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-portability
configure.ac:27: installing './compile'
configure.ac:27: installing './config.guess'
configure.ac:27: installing './config.sub'
configure.ac:25: installing './install-sh'
configure.ac:25: installing './missing'
src/Makefile.am:4: installing './py-compile'
automake: warnings are treated as errors
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'globalhotkeys.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
src/globalhotkeys/Makefile.am:2: while processing Libtool library 'globalhotkeys.la'
src/globalhotkeys/Makefile.am: installing './depcomp'
autoreconf: automake failed with exit status: 1
==> ERROR: A failure occurred in build().
Aborting...Offline
Looking at the AUR comments, this has come up before. It was solved by adding
sed -i '/AM_GCONF_SOURCE_2/ a\AM_PROG_AR' configure.acOh, and notice that your pkgver function still doesn't work. As I said, there is no reachable tag in that branch.
Last edited by Scimmia (2014-04-19 03:39:26)
Offline
Thanks!
It works now.
Offline