updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / droid64 / PKGBUILD
blob7a7aa6409ca1f664a3fa58840e2dd374af408fc5
1 # Contributor: Sebastian Wolf <fatmike303 at gmail dot com>
2 pkgname=droid64
3 _pkgname=droiD64
4 pkgver=0.04b
5 pkgrel=1
6 pkgdesc='A graphical filemanager for D64 files (Commodore 64 and others)'
7 arch=(any)
8 url=http://droid64.sourceforge.net
9 license=('GPL2')
10 depends=('java-runtime' 'vlc' 'mplayer')
11 optdepends=('vice')
12 source=(
13         http://prdownloads.sourceforge.net/${pkgname}/${_pkgname}-${pkgver}.tar.gz?download
14         http://${pkgname}.sourceforge.net/data/${_pkgname}_icons.tar.gz
16 md5sums=(fb610f3f69ec6a42e8f690739d3d4c2a 192bdd2f5ba6b1a1fcb197eb435da958)
18 build() {
19         mkdir -p ${pkgdir}/opt/${pkgname}
20         cd ${pkgdir}/opt/${pkgname}
21         cp -r ${srcdir}/${_pkgname}-${pkgver}/* .
23         mkdir -p ${pkgdir}/usr/bin/
24         cat > ${pkgdir}/usr/bin/${pkgname} << EOF
25 #!/bin/sh
26 cd /opt/${pkgname}
27 java -jar ${_pkgname}-${pkgver}.jar
28 EOF
29         chmod +x ${pkgdir}/usr/bin/${pkgname}
31     install -Dm644 ${srcdir}/${_pkgname}_icons/${_pkgname}_Icon.xpm ${startdir}/pkg/usr/share/pixmaps/${pkgname}.xpm
33     install -Dm644 ${startdir}/${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop