updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / duo / PKGBUILD
blob0a302ec268a8567dc276f6f30d7fe1badb379c49
1 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
3 pkgname=duo
4 pkgver=0.10
5 pkgrel=3
6 pkgdesc="Duo is a crazy eight / UNO card game"
7 url="https://launchpad.net/duo"
8 license=('GPL')
9 arch=('i686' 'x86_64')
10 depends=('python-imaging' 'python-pmw' 'gettext')
11 source=(http://launchpad.net/duo/trunk/${pkgver}/+download/${pkgname}-${pkgver}.tar.gz duo.png duo.desktop)
12 md5sums=('802c4149be808eff493e1d214e8c5579' '9c2b33a078dad25e01d333dc4b219ef7' '13fbe6f5afff6f54ee608e52e5e1d48f')
13 install=duo.install
15 build() {
16   cd ${srcdir}/${pkgname}-${pkgver}
17   python2 make-locale.py || return 1
18   mkdir -p ${pkgdir}/usr/share/{duo,applications}
19   mkdir ${pkgdir}/usr/bin
20   echo "cd '/usr/share/duo/' && python2 duo.py" > ${pkgdir}/usr/bin/duo.sh
21   chmod 755 ${startdir}/pkg/usr/bin/duo.sh
22   cp -R * ${pkgdir}/usr/share/duo
23   chmod 777 -R ${pkgdir}/usr/share/duo/duo
24   cp ${srcdir}/duo.png ${pkgdir}/usr/share/duo
25   cp ${srcdir}/duo.desktop ${pkgdir}/usr/share/applications