updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / jmf / PKGBUILD
blob8a2a1457f494cd6d297623c6730bf3fd0ba4f285
1 #Contributor: Jesse Jaara <jesse.jaara@gmail.com>
3 pkgname=jmf
4 pkgver=2.1.1e
5 pkgrel=6
6 pkgdesc="Java Media Framework (with MP3 Plugin)"
7 url="http://java.sun.com/products/java-media/jmf/"
8 license="custom"
9 arch=('i686' 'x86_64')
10 depends=('java-environment')
11 makedepends=('unzip')
13 source=("http://clusteredserver.googlecode.com/files/jmf-2_1_1e-alljava.zip" \
14         "http://huulivoide.pp.fi/Arch/jmf-mp3.tar.xz" LICENSE)
16 install="jmf.install"
18 build() {
19         cd "${srcdir}"
22     if [ -d /usr/lib/jvm/java-6-openjdk ]; then
23     #####OpenJDK######
24     mkdir "${pkgdir}/usr/lib/jvm/java-6-openjdk/jre/lib/ext" -p
25         
26     cd JMF-2.1.1e/
27     cp bin "${pkgdir}/usr/lib/jvm/java-6-openjdk/jre/" -r
28     cp lib/*.jar "${pkgdir}/usr/lib/jvm/java-6-openjdk/jre/lib/ext/"
29     cp lib/jmf.properties "${pkgdir}/usr/lib/jvm/java-6-openjdk/jre/lib/"
30     
31     cp "${srcdir}/jmfRegisterMp3Plugin" "${pkgdir}/usr/lib/jvm/java-6-openjdk/jre/bin/"
32     cp "${srcdir}/registerMp3Plugin.class" "${pkgdir}/usr/lib/jvm/java-6-openjdk/jre/lib/"
33     cp "${srcdir}/mp3plugin.jar" "${pkgdir}/usr/lib/jvm/java-6-openjdk/jre/lib/ext/"
36     else
37     
38     #####JRE#####
39    
40     mkdir "${pkgdir}/opt/java/jre/lib/ext/lib/ext" -p
41         
42     cd JMF-2.1.1e/
43     cp bin "${pkgdir}/opt/java/jre/" -r
44     cp lib/*.jar "${pkgdir}/opt/java/jre/lib/ext/"
45     cp lib/jmf.properties "${pkgdir}/opt/java/jre/lib/"
46     
47     cp "${srcdir}/jmfRegisterMp3Plugin" "${pkgdir}/opt/java/jre/bin/"
48     cp "${srcdir}/registerMp3Plugin.class" "${pkgdir}/opt/java/jre/lib/"
49     cp "${srcdir}/mp3plugin.jar" "${pkgdir}/opt/java/jre/lib/ext/"
51     fi
53         #Copy license
54         mkdir -p  "${pkgdir}/usr/share/licenses/${pkgname}/"
55         cp "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/"
58 md5sums=('5dafc2469b22d18420ada45972a88ec0'
59          '19e483a0c53396656c3885646a9d60b2'
60          '96afb7ef8418bcdccfaae615de40881a')