summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 817660a66abdcf89f34d06a913dc430bd698b1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: PitBall

pkgname=libnotify-gtk2
pkgver=0.7.6
pkgrel=2
pkgdesc="Library for sending desktop notifications"
arch=('x86_64' 'i686')
url="https://developer.gnome.org/notification-spec/"
license=('LGPL')
depends=('gdk-pixbuf2')
makedepends=('gtk2' 'gobject-introspection' 'gtk-doc')
conflicts=('libnotify' 'libnotify-git' 'libnotify-id' 'libnotify-id-git')
provides=("libnotify=$pkgver")
replaces=('libnotify')

source=("http://ftp.gnome.org/pub/GNOME/sources/${pkgname/-gtk2/}/0.7/${pkgname/-gtk2/}-${pkgver}.tar.xz")
sha256sums=('0ef61ca400d30e28217979bfa0e73a7406b19c32dd76150654ec5b2bdf47d837')

build() {
  cd ${srcdir}/${pkgname/-gtk2/}-${pkgver}
  # Force use GTK-2.0
  sed -e 's/2.90/2.24/' -e 's/gtk+-3.0/gtk+-2.0/' -i configure.ac
  autoreconf -fi
  export ACLOCAL=aclocal
  export AUTOMAKE=automake
  export CC="gcc -m64"
  export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
  ./configure --prefix=/usr --enable-gtk-doc
  make
}

package() {
  cd ${srcdir}/${pkgname/-gtk2/}-${pkgver}
  make DESTDIR="${pkgdir}" install
}