summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Gysin2016-07-17 21:13:27 +0300
committerChristoph Gysin2016-07-17 21:13:27 +0300
commitde30a00cb2567150145b37b6a2d882b0a8f26dd0 (patch)
tree86339c1a5353228762f0e6ce3bc4c10308917721
parentfdd6b63ebdeb3b183e7b6e6e4ae7f98dee380e86 (diff)
downloadaur-de30a00cb2567150145b37b6a2d882b0a8f26dd0.tar.gz
build pasystray-gtk2-git using split package
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD43
2 files changed, 50 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5612da4356e..97c02801580 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Sun May 15 19:57:01 UTC 2016
+# Sun Jul 17 18:12:55 UTC 2016
pkgbase = pasystray-git
pkgdesc = PulseAudio system tray (a replacement for padevchooser)
- pkgver = 0.5.2.r46.gcd1929a
+ pkgver = 0.6.0.r0.g6f6dd61
pkgrel = 1
url = https://github.com/christophgysin/pasystray
arch = i686
@@ -12,7 +12,6 @@ pkgbase = pasystray-git
makedepends = git
makedepends = pkg-config
depends = libpulse
- depends = gtk3
depends = libnotify
depends = avahi
depends = libx11
@@ -29,4 +28,20 @@ pkgbase = pasystray-git
md5sums = SKIP
pkgname = pasystray-git
+ depends = libpulse
+ depends = libnotify
+ depends = avahi
+ depends = libx11
+ depends = gnome-icon-theme
+ depends = gtk-update-icon-cache
+ depends = gtk3
+
+pkgname = pasystray-gtk2-git
+ depends = libpulse
+ depends = libnotify
+ depends = avahi
+ depends = libx11
+ depends = gnome-icon-theme
+ depends = gtk-update-icon-cache
+ depends = gtk2
diff --git a/PKGBUILD b/PKGBUILD
index a75508c8f4e..691ed2a2002 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Christoph Gysin <christoph.gysin@gmail.com>
+pkgname=(pasystray-git pasystray-gtk2-git)
_pkgname=pasystray
-pkgname=${_pkgname}-git
-pkgver=0.5.2.r46.gcd1929a
+pkgver=0.6.0.r0.g6f6dd61
pkgrel=1
pkgdesc="PulseAudio system tray (a replacement for padevchooser)"
arch=('i686' 'x86_64')
url="https://github.com/christophgysin/pasystray"
license=('LGPL')
groups=('multimedia')
-depends=('libpulse' 'gtk3' 'libnotify' 'avahi' 'libx11' 'gnome-icon-theme'
+depends=('libpulse' 'libnotify' 'avahi' 'libx11' 'gnome-icon-theme'
'gtk-update-icon-cache')
makedepends=('git' 'pkg-config')
optdepends=(
@@ -25,18 +25,39 @@ md5sums=('SKIP')
pkgver() {
cd $_pkgname
- git describe --long | sed -r "s/^${pkgname%-git}-//;s/([^-]*-g)/r\\1/;s/-/./g"
+ git describe --long | sed -r "s/^${_pkgname%-git}-//;s/([^-]*-g)/r\\1/;s/-/./g"
}
build() {
- cd "$srcdir/$_pkgname"
- autoreconf -is
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc
+ cp -r $srcdir/$_pkgname{,-gtk2}
+
+ for gtk in "" 2; do
+ cd $srcdir/$_pkgname${gtk:+-gtk$gtk}
+
+ autoreconf -is
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ ${gtk:+--with-gtk=$gtk}
+ make
+ done
+}
+
+package_pasystray-gtk2-git() {
+ depends+=(gtk2)
+ cd $srcdir/$_pkgname-gtk2
+
+ # hack: do not require gtk-3
+ sed -i \
+ -e '/<requires /d' \
+ -e '/license_type/d' \
+ src/pasystray.glade
+
+ make DESTDIR="$pkgdir/" install
}
-package() {
- cd "$srcdir/$_pkgname"
+package_pasystray-git() {
+ depends+=(gtk3)
+ cd $srcdir/$_pkgname
make DESTDIR="$pkgdir/" install
}