summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cbf2e9c39905965e6c535e8424ffe56c1361c1da (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
32
33
34
35
36
37
38
39
40
# former Maintainer: Tom Kuther <archlinux@kuther.net>
# former Maintainer: kevku <kevku@gmx.com>
# Contributor: Cedric Sougne <cedric@sougne.name>
# Contributor: Tom < reztho at archlinux dot us >
pkgname=java-jce_ustrength
pkgver=8
pkgrel=3
pkgdesc="Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 8"
arch=('any')
url="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
license=('custom')
install=${pkgname}.install
depends=('java-runtime>=8')
source=('http://download.oracle.com/otn-pub/java/jce/8/jce_policy-8.zip'
        'install_java_jce_ustrength'
        "${pkgname}-install.hook"
        "${pkgname}-uninstall.hook")
DLAGENTS=('http::/usr/bin/curl -LC - -b oraclelicense=a -O')
sha256sums=('f3020a3922efd6626c2fff45695d527f34a8020e938a49292561f18ad1320b59'
            '3c7cc3b3aa0d748ce540ef4b679a1e01e3609144d3ca37ec9885d05d44d4c467'
            '0d9940a49b4c9933e7cdc2c237d6f275a898e40a7a9505df81aa474d90579ff9'
            'd8a48f9980744ea00d5373984154137b0042276c94c4cd8465b95fb4b1fad72a')

package() {
	cd "$srcdir/UnlimitedJCEPolicyJDK8"
	# Fixed place for the jce_policy files
	install -Dm644 US_export_policy.jar "${pkgdir}/usr/share/java/java-jce_ustrength/US_export_policy.jar"
	install -Dm644 local_policy.jar "${pkgdir}/usr/share/java/java-jce_ustrength/local_policy.jar"
	
	# Installing the script
	install -Dm755 "${srcdir}/install_java_jce_ustrength" "${pkgdir}/usr/bin/install_java_jce_ustrength"

	# The documentation
	install -Dm644 README.txt "${pkgdir}/usr/share/doc/java-jce_ustrength/README.txt"

    # Install hooks
    cd "$srcdir"
    install -Dm644 ${pkgname}-install.hook "$pkgdir/usr/share/libalpm/hooks/${pkgname}-install.hook"
    install -Dm644 ${pkgname}-uninstall.hook "$pkgdir/usr/share/libalpm/hooks/${pkgname}-uninstall.hook"
}