[arch-commits] Commit in (lxhotkey lxhotkey/trunk lxhotkey/trunk/PKGBUILD)

Balló György bgyorgy at archlinux.org
Sun Feb 19 05:06:54 UTC 2017


    Date: Sunday, February 19, 2017 @ 05:06:53
  Author: bgyorgy
Revision: 213100

Add lxhotkey (part of LXDE)

Added:
  lxhotkey/
  lxhotkey/trunk/
  lxhotkey/trunk/PKGBUILD

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Added: lxhotkey/trunk/PKGBUILD
===================================================================
--- lxhotkey/trunk/PKGBUILD	                        (rev 0)
+++ lxhotkey/trunk/PKGBUILD	2017-02-19 05:06:53 UTC (rev 213100)
@@ -0,0 +1,53 @@
+#$Id$
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgbase=lxhotkey
+pkgname=(lxhotkey lxhotkey-gtk3)
+pkgver=0.1.0
+pkgrel=1
+pkgdesc='Keyboard shortcuts configurator (part of LXDE)'
+arch=('i686' 'x86_64')
+license=('GPL2')
+url='http://lxde.org/'
+depends=('gtk2' 'gtk3' 'libfm')
+makedepends=('intltool')
+source=(https://downloads.sourceforge.net/lxde/$pkgbase-$pkgver.tar.xz)
+sha1sums=('0d43334f1f144746ed7ae3ab361105fd1ddfad26')
+
+prepare() {
+  cd $pkgbase-$pkgver
+  ./autogen.sh
+}
+
+build() {
+  # GTK+ 2 version
+  [ -d gtk2 ] || cp -r $pkgbase-$pkgver gtk2
+  cd gtk2
+  ./configure --sysconfdir=/etc --prefix=/usr
+  make
+
+  cd "$srcdir"
+  # GTK+ 3 version
+  [ -d gtk3 ] || cp -r $pkgbase-$pkgver gtk3
+  cd gtk3
+  ./configure --sysconfdir=/etc --prefix=/usr --with-gtk=3
+  make
+}
+
+package_lxhotkey() {
+  groups=('lxde')
+  depends=('gtk2' 'libfm')
+
+  cd gtk2
+  make DESTDIR="$pkgdir" install
+}
+
+package_lxhotkey-gtk3() {
+  groups=('lxde-gtk3')
+  pkgdesc+=' (GTK+ 3 version)'
+  depends=('gtk3' 'libfm' 'libunistring')
+  conflicts=('lxhotkey')
+
+  cd gtk3
+  make DESTDIR="$pkgdir" install
+}


Property changes on: lxhotkey/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list