summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Tari2020-07-17 21:38:26 +0200
committerRobert Tari2020-07-17 21:38:26 +0200
commita7640bd1a9f633007aaa97faedae0575fa48fc17 (patch)
tree23f9e8333e0704e9852ea1b9a4d5068631400ab7
parent95c67eff0e1e4f761ecb3ba36fa4604f82a1eef2 (diff)
downloadaur-a7640bd1a9f633007aaa97faedae0575fa48fc17.tar.gz
Updated PKGBUILD
-rw-r--r--.SRCINFO46
-rw-r--r--PKGBUILD111
2 files changed, 40 insertions, 117 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 70b4f6bfda8..2f85e7bef4e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,48 +1,28 @@
pkgbase = libayatana-appindicator
- pkgdesc = Ayatana Application Indicators Shared Library
+ pkgdesc = Ayatana Application Indicators (Shared Library)
pkgver = 0.5.4
pkgrel = 1
url = https://github.com/AyatanaIndicators/libayatana-appindicator
+ arch = i686
arch = x86_64
+ arch = pentium4
license = LGPL2.1
license = LGPL3
- makedepends = mate-common
- makedepends = gtk-doc
- makedepends = dbus-glib
- makedepends = gobject-introspection
- makedepends = gtk-sharp-2
- makedepends = perl-xml-libxml
- makedepends = libayatana-indicator-gtk2
+ makedepends = gtk3
+ makedepends = glib2
makedepends = libayatana-indicator-gtk3
- makedepends = libdbusmenu-gtk2
makedepends = libdbusmenu-gtk3
+ makedepends = dbus-glib
+ makedepends = gtk-sharp-3
makedepends = mono
- makedepends = pygtk
makedepends = vala
- makedepends = python2
- options = !emptydirs
- source = https://github.com/AyatanaIndicators/libayatana-appindicator/archive/0.5.4.tar.gz
- sha512sums = 009f8615993e8e13add85727e504304fdfd9c9e070e3d08d10123739860b444efa5913cef905034e16a5f6c024188d2db8274045d40d0c93985fabde2a995740
-
-pkgname = libayatana-appindicator-gtk2
- pkgdesc = Ayatana Application Indicators Shared Library (GTK+ 2 library)
- depends = libdbusmenu-gtk2
- depends = libayatana-indicator-gtk2
- provides = libayatana-appindicator
- conflicts = libayatana-appindicator
-
-pkgname = libayatana-appindicator-gtk3
- pkgdesc = Ayatana Application Indicators Shared Library (GTK+ 3 library)
+ makedepends = mate-common
+ makedepends = gobject-introspection
depends = libdbusmenu-gtk3
depends = libayatana-indicator-gtk3
- provides = libayatana-appindicator3
- conflicts = libayatana-appindicator3
-
-pkgname = libayatana-appindicator-sharp
- depends = libayatana-appindicator-gtk2
- depends = gtk-sharp-2
+ replaces = -gtk3
+ source = https://github.com/AyatanaIndicators/libayatana-appindicator/archive/0.5.4.tar.gz
+ md5sums = d9f2b6e269577e4e5141fb056e3ca6a3
-pkgname = python2-libayatana-appindicator
- depends = libayatana-appindicator-gtk2
- depends = python2
+pkgname = libayatana-appindicator
diff --git a/PKGBUILD b/PKGBUILD
index bee34c9983a..6faa7d462d1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,93 +1,36 @@
# Maintainer: Guillaume Hayot <ghayot[at]postblue[dot]info>
-pkgbase=libayatana-appindicator
-pkgname=("${pkgbase}-gtk"{2,3} "${pkgbase}-sharp" "python2-${pkgbase}")
-pkgver=0.5.4
-pkgrel=1
-pkgdesc='Ayatana Application Indicators Shared Library'
-url='https://github.com/AyatanaIndicators/libayatana-appindicator'
-arch=('x86_64')
-license=('LGPL2.1' 'LGPL3')
-makedepends=('mate-common' 'gtk-doc' 'dbus-glib' 'gobject-introspection' 'gtk-sharp-2' 'perl-xml-libxml'
- 'libayatana-indicator-gtk'{2,3} 'libdbusmenu-gtk'{2,3} 'mono' 'pygtk' 'vala' 'python2')
-options=('!emptydirs')
-source=("https://github.com/AyatanaIndicators/$pkgbase/archive/$pkgver.tar.gz")
-sha512sums=('009f8615993e8e13add85727e504304fdfd9c9e070e3d08d10123739860b444efa5913cef905034e16a5f6c024188d2db8274045d40d0c93985fabde2a995740')
-
-prepare() {
- cp -ra ${pkgbase}-${pkgver}{,-py2}
- cp -ra ${pkgbase}-${pkgver}{,-gtk2}
+# Maintainer: Robert Tari <robert at tari dot in>
+
+pkgname="libayatana-appindicator"
+pkgver="0.5.4"
+pkgrel="1"
+pkgdesc="Ayatana Application Indicators (Shared Library)"
+arch=("i686" "x86_64" "pentium4")
+url="https://github.com/AyatanaIndicators/libayatana-appindicator"
+license=("LGPL2.1" "LGPL3")
+makedepends=("gtk3" "glib2" "libayatana-indicator-gtk3" "libdbusmenu-gtk3" "dbus-glib" "gtk-sharp-3" "mono" "vala" "mate-common" "gobject-introspection")
+depends=('libdbusmenu-gtk3' 'libayatana-indicator-gtk3')
+source=("https://github.com/AyatanaIndicators/$pkgname/archive/$pkgver.tar.gz")
+md5sums=("d9f2b6e269577e4e5141fb056e3ca6a3")
+replaces=("${pkgbase}-gtk3")
+
+prepare()
+{
+ cd ${srcdir}/${pkgname}-${pkgver}
+ NOCONFIGURE=1 ./autogen.sh
}
-build() {
- export CFLAGS="${CFLAGS} -Wno-deprecated-declarations"
- export CSC='/usr/bin/mcs'
-
- msg2 'Building gtk3…'
- (cd ${pkgbase}-${pkgver}
- ./autogen.sh --prefix=/usr \
- --enable-introspection \
- --enable-gtk-doc=no \
- --disable-{tests,mono-test} \
- --with-gtk=3
+build()
+{
+ export CSC="/usr/bin/mcs"
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --enable-introspection --enable-gtk-doc=no --disable-tests --disable-mono-test --with-gtk=3
make
- )
-
- msg2 'Building gtk2…'
- (cd ${pkgbase}-${pkgver}-gtk2
- ./autogen.sh --prefix=/usr \
- --enable-introspection \
- --enable-gtk-doc \
- --disable-{tests,mono-test} \
- --with-gtk=2
- make
- )
-
- msg2 'Building python2…'
- (cd ${pkgbase}-${pkgver}-py2
- ./autogen.sh --prefix=/usr \
- --enable-introspection \
- --enable-gtk-doc \
- --disable-{tests,mono-test} \
- --with-gtk=2
- make
- )
}
-package_libayatana-appindicator-gtk2() {
- pkgdesc+=' (GTK+ 2 library)'
- depends=('libdbusmenu-gtk2' 'libayatana-indicator-gtk2')
- provides=("${pkgbase}")
- conflicts=("${pkgbase}")
-
- cd ${pkgbase}-${pkgver}-gtk2
+package()
+{
+ cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
- make -C bindings/mono DESTDIR="${pkgdir}" uninstall
- make -C bindings/python DESTDIR="${pkgdir}" uninstall
-}
-
-package_libayatana-appindicator-gtk3() {
- pkgdesc+=' (GTK+ 3 library)'
- depends=('libdbusmenu-gtk3' 'libayatana-indicator-gtk3')
- provides=("${pkgbase}3")
- conflicts=("${pkgbase}3")
-
- cd ${pkgbase}-${pkgver}
- make DESTDIR="${pkgdir}" install
- make -C bindings/mono DESTDIR="${pkgdir}" uninstall
- make -C bindings/python DESTDIR="${pkgdir}" uninstall
-}
-
-package_libayatana-appindicator-sharp() {
- depends=("${pkgbase}-gtk2" 'gtk-sharp-2')
-
- cd ${pkgbase}-${pkgver}-gtk2
- make -C bindings/mono DESTDIR="${pkgdir}" install
-}
-
-package_python2-libayatana-appindicator() {
- depends=("${pkgbase}-gtk2" 'python2')
-
- cd ${pkgbase}-${pkgver}-py2
- make -C bindings/python DESTDIR="${pkgdir}" install
}