summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8afe51eced79f5f1b85fd47253af65dfe772cd77 (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
# Contributor: ConnorBehan <connor.behan@gmail.com>

pkgname=unified-demos
pkgver=0.3
pkgrel=4
pkgdesc="Replacement for all gtk-demo language bindings"
arch=(i686 x86_64)
url="http://demohack.sourceforge.net/"
license=('LGPL')
depends=('pygtk' 'medit-full>=1.1.0')
makedepends=('pkg-config' 'gtkmm')
optdepends=('gtkmm:	Running C++ demos'
	    'gtk2-perl:	Running Perl demos'
	    'ruby-gtk2:	Running Ruby demos')
source=(https://downloads.sourceforge.net/sourceforge/demohack/$pkgname-$pkgver.tar.gz)

build() {
  cd "$srcdir"/$pkgname-$pkgver
  sed -i -e 's|env python|env python2|' demohack
  for file in `ls data/demos/pygtk/bin`; do
  	sed -i -e 's/env python/env python2/' data/demos/pygtk/bin/$file
  done
  make
}

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

md5sums=('2314284ac392f29fa17e265748dcb737')