summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.AURINFO15
-rw-r--r--.SRCINFO6
-rw-r--r--[-rwxr-xr-x]PKGBUILD24
3 files changed, 37 insertions, 8 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..429b7708093
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,15 @@
+pkgbase = chbg
+ pkgdesc = Periodically change background image in X11. Can be a slideshow screensaver too
+ pkgver = 1.5
+ pkgrel = 6
+ url = http://chbg.sourceforge.net/about.html
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = gtk2
+ depends = imlib2
+ source = http://downloads.sourceforge.net/chbg/chbg-1.5.tgz
+ source = gtk2.patch
+
+pkgname = chbg
+
diff --git a/.SRCINFO b/.SRCINFO
index a9e153390dc..0db914fbb59 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,17 @@
pkgbase = chbg
pkgdesc = Periodically change background image in X11. Can be a slideshow screensaver too
pkgver = 1.5
- pkgrel = 5
+ pkgrel = 6
url = http://chbg.sourceforge.net/about.html
arch = i686
arch = x86_64
license = GPL
- depends = gtk
+ depends = gtk2
depends = imlib2
source = http://downloads.sourceforge.net/chbg/chbg-1.5.tgz
+ source = gtk2.patch
md5sums = 3ee8b01a7e089570f66d89dac353cc2c
+ md5sums = 60fa92b11a575041c3a5d1a36c11f4e7
pkgname = chbg
diff --git a/PKGBUILD b/PKGBUILD
index 5b60a32bfec..c07a21542de 100755..100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,21 +3,33 @@
pkgname=chbg
pkgver=1.5
-pkgrel=5
+pkgrel=6
pkgdesc="Periodically change background image in X11. Can be a slideshow screensaver too"
arch=('i686' 'x86_64')
url="http://chbg.sourceforge.net/about.html"
license=('GPL')
-depends=('gtk' 'imlib2')
-source=(http://downloads.sourceforge.net/chbg/$pkgname-$pkgver.tgz)
-md5sums=('3ee8b01a7e089570f66d89dac353cc2c')
+depends=('gtk2' 'imlib2')
+source=(http://downloads.sourceforge.net/chbg/$pkgname-$pkgver.tgz
+ gtk2.patch)
+md5sums=('3ee8b01a7e089570f66d89dac353cc2c'
+ '60fa92b11a575041c3a5d1a36c11f4e7')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -Np2 -b -z .orig -i ../gtk2.patch
+}
build() {
cd "$srcdir/$pkgname-$pkgver"
export CPPFLAGS="$CPPFLAGS -I/usr/include/libpng12"
export PNG_LIBS="-lpng12"
- ./configure --with-image-library=imlib2 --prefix=/usr --mandir=/usr/share/man || return 1
- make
+# export LDFLAGS="`echo $LDFLAGS|sed -e 's/,--as-needed//'`"
+ ./configure \
+ --with-image-library=imlib2 \
+ --with-gtk-config="pkg-config x11 gtk+-2.0" \
+ --with-imlib2-config="pkg-config imlib2" \
+ --prefix=/usr \
+ --mandir=/usr/share/man
+ make LDADD='-lm'
}
package() {
cd "$srcdir/$pkgname-$pkgver"