updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / raitranslator / PKGBUILD
blob7d0287f5a51e4dfb327784e7aab1de5ae91e7180
1 # Contributor: aggaZ <aggaz@paranoici.org>
3 pkgname=raitranslator
4 pkgver=1.51
5 pkgrel=2
6 arch=('i686' 'x86_64')
7 pkgdesc="Rai URL to MMS translator."
8 depends=('java-runtime')
9 makedepends=('unzip')
10 url="http://diy-fever.com/index.php?project=software"
11 license=('custom:CC BY-NC-SA 3.0 Unported')
12 source=("http://www.dariocorsetti.com/index.php?option=com_jooget&Itemid=0&task=dl&f=raitranslator-1.51.zip&no_html=1")
13 md5sums=('addd97315278ce02d0b6e9e217fc18da')
15 build() {
16   mkdir -p $pkgdir/usr/share
17   cp -R $srcdir/RaiTranslator $pkgdir/usr/share/
18   
19   mkdir -p $pkgdir/usr/bin
20   cat <<EOF > ${pkgdir}/usr/bin/$pkgname
21 #!/bin/bash
22 cd /usr/share/RaiTranslator
23 java -jar RaiTranslator.jar
24 EOF
25   chmod 755 ${pkgdir}/usr/bin/$pkgname
27 mkdir -p $pkgdir/usr/share/licenses/$pkgname
28 cp $startdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/