summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a46f7c971d9b04bebb96f3f89b35547ed3c093e2 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Maintainer: Holodoc
pkgname=jdownloader2
pkgver=latest
pkgrel=13
pkgdesc='Download manager, written in Java, for one-click hosting sites like Rapidshare and Megaupload. Uses its own updater.'
arch=('any')
conflicts=('jdownloader')
replaces=('jdownloader')
url='http://jdownloader.org/'
license=('GPL')
depends=('java-runtime' 'wget' 'bash' 'hicolor-icon-theme' 'unzip' 'shared-mime-info' 'desktop-file-utils' 'fontconfig' 'ttf-dejavu')
optdepends=('phantomjs: needed for some remote capture solving')
install='jdownloader.install'
source=('JDownloader'
        'JDownloaderHeadless'
        'JDownloaderHeadlessCtl'
        'functions.sh'
        'JDownloaderHeadlessCleanLogin'
        'jdownloader.xml'
        'jdownloader.desktop'
        'jd-containers.desktop'
        'jd-container16.png'
        'jd-container22.png'
        'jd-container24.png'
        'jd-container32.png'
        'jd-container48.png'
        'jd-container256.png'
        'jdownloader16.png'
        'jdownloader22.png'
        'jdownloader24.png'
        'jdownloader32.png'
        'jdownloader48.png'
        'jdownloader256.png'
        'jdownloader.service' )
sha256sums=('cab5904f226028fdc9384f407ceca34b4305885176fad29b08a2e8b83653a345'
            'd555c78d8110e536aee67de765ee5134d872fbb48354050f7b2f14ff5499120a'
            'dca392fad29c70eff609ec25abaefd33343c8a6c98088e0719c6746759ed0aa5'
            '70f4a5cd95532c70ae20a357e655d01ac23fe92bb71feac45973e2b53d024cff'
            '1c9949bfeaf3595783eec9501e600cb8c4443e04f72d57c095560fb66dcd53d1'
            
            'c4301592694b3273ed44814debcc03bf1e4fc85882954f5c03e55508c53c4491'
            '44a499df472328f9034f9972aad02df0fc27a45ef1bb3e9314576d2fa9fdfcbe'
            '92cfbe543ee1f9e094347dbd9c0c6a59bd52974145f00dbece8ed0da9a828bfa'
            '16d70dfefe6d4d655313ff2784d2d259287d09634236e17a8c0ba00eac136274'
            '69d99b5d27c847eb7d99ea4e49adba2a5ac1cb12ce10eb03d38e524d6f12e234'
            '7d6073a968ff0d33a259a622ed34d8a58beb9cbdf715a8279b384546b1b4df38'
            '69ad34361769c576422bc245b910c4e0e8ed89e75435ac0a3aced9911872aaca'
            '271b10840c2d9df2c94deb28ac1477c3f3424a7cd0033e41f09615dddefa0947'
            '896eb67760bf0f3b2527b1f0cebee6cb0d16499af8961cb38bb5dca3e6d27d07'
            'b7cad9813e641eddf82571609346bb3a9cdb75e57ffa0a43fbc75721af2bc99c'
            '02ecfb160b7973f5739357e4676556a0f9e01df5b655eab40fe89f463514259a'
            'a10a45298541c025f28e9a084a87ab89a53428a00a50a9944ed3bac7978340fd'
            'cb63ab195ff1b876b668dbe518f4572971e5e0fe239a627ef67486933fcaed07'
            'b5540647f8120f723fb14747473a96e3ee031ffbc0f097e66c6cfd3431bf4e56'
            '6c7a28ec72c8627e9bf06a58d7f6bfed075632a6743e1c8087dc0fa065261504'
            '8d170fd301b37302a4f64cec759bdb5c879cb30c8b8e94120f3f985df1d31b7f')
package() {
  install -d -m755 "$pkgdir/opt/JDownloaderScripts"
  install -D -m755 "$srcdir/JDownloader" "$pkgdir/opt/JDownloaderScripts/JDownloader"
	install -D -m755 "$srcdir/JDownloaderHeadless" "$pkgdir/opt/JDownloaderScripts/JDownloaderHeadless"
  install -D -m755 "$srcdir/JDownloaderHeadlessCtl" "$pkgdir/opt/JDownloaderScripts/JDownloaderHeadlessCtl"
  install -D -m755 "$srcdir/functions.sh" "$pkgdir/opt/JDownloaderScripts/functions.sh"
	install -D -m755 "$srcdir/JDownloaderHeadlessCleanLogin" "$pkgdir/opt/JDownloaderScripts/JDownloaderHeadlessCleanLogin"
	
  
  install -D -m644 "$srcdir/jdownloader.xml" "$pkgdir/usr/share/mime/packages/jdownloader.xml"
	install -D -m644 "$srcdir/jdownloader.desktop" "$pkgdir/usr/share/applications/jdownloader.desktop"
	install -D -m644 "$srcdir/jd-containers.desktop" "$pkgdir/usr/share/applications/jd-containers.desktop"
	install -D -m644 "$srcdir/jd-container16.png" "$pkgdir/usr/share/icons/hicolor/16x16/mimetypes/jd-container.png"
	install -D -m644 "$srcdir/jd-container22.png" "$pkgdir/usr/share/icons/hicolor/22x22/mimetypes/jd-container.png"
	install -D -m644 "$srcdir/jd-container24.png" "$pkgdir/usr/share/icons/hicolor/24x24/mimetypes/jd-container.png"
	install -D -m644 "$srcdir/jd-container32.png" "$pkgdir/usr/share/icons/hicolor/32x32/mimetypes/jd-container.png"
	install -D -m644 "$srcdir/jd-container48.png" "$pkgdir/usr/share/icons/hicolor/48x48/mimetypes/jd-container.png"
	install -D -m644 "$srcdir/jd-container256.png" "$pkgdir/usr/share/icons/hicolor/256x256/mimetypes/jd-container.png"
	install -D -m644 "$srcdir/jdownloader16.png" "$pkgdir/usr/share/icons/hicolor/16x16/apps/jdownloader.png"
	install -D -m644 "$srcdir/jdownloader22.png" "$pkgdir/usr/share/icons/hicolor/22x22/apps/jdownloader.png"
	install -D -m644 "$srcdir/jdownloader24.png" "$pkgdir/usr/share/icons/hicolor/24x24/apps/jdownloader.png"
	install -D -m644 "$srcdir/jdownloader32.png" "$pkgdir/usr/share/icons/hicolor/32x32/apps/jdownloader.png"
	install -D -m644 "$srcdir/jdownloader48.png" "$pkgdir/usr/share/icons/hicolor/48x48/apps/jdownloader.png"
	install -D -m644 "$srcdir/jdownloader256.png" "$pkgdir/usr/share/icons/hicolor/256x256/apps/jdownloader.png"
	install -D -m644 "$srcdir/jdownloader.service" "$pkgdir/usr/lib/systemd/system/jdownloader.service"
	install -d -m775 "$pkgdir/opt/JDownloader"
  mkdir -p "$pkgdir/usr/bin"
  
  ln -s "/opt/JDownloaderScripts/JDownloader"  "${pkgdir}/usr/bin/JDownloader"
	ln -s "/opt/JDownloaderScripts/JDownloader" "${pkgdir}/usr/bin/jdownloader"
  ln -s "/opt/JDownloaderScripts/JDownloaderHeadless" "${pkgdir}/usr/bin/JDownloaderHeadless" 
  ln -s "/opt/JDownloaderScripts/JDownloaderHeadlessCtl" "${pkgdir}/usr/bin/JDownloaderHeadlessCtl"
  ln -s "/opt/JDownloaderScripts/JDownloaderHeadlessCleanLogin" "${pkgdir}/usr/bin/JDownloaderHeadlessCleanLogin" 
}