summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e30037fce85d57e247593619123aaa0650dc9f20 (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
# Maintainer: Indexyz <jiduye@gmail.com>

pkgname=finalshell
pkgver=2.2
pkgrel=2
pkgdesc="A Linux SSH Application."
arch=(i686 x86_64)
url="http://www.hostbuf.com/t/989.html"
license=('custom')
makedepends=('bin32-jre' 'curl' 'unzip')
source=("http://www.hostbuf.com/downloads/finalshell_data.zip")
noextract=("finalshell_data.zip")
sha256sums=('SKIP')

prepare() {
    cd "${srcdir}"
    rm -rf "${srcdir}"/finalshelldata
    unzip "${srcdir}"/finalshell_data.zip
}

build() {
    cd "${srcdir}"/finalshelldata
    unpack200 finalshell.pack.gz finalshell.jar
}

package() {
    cd "${srcdir}"
    mkdir -p ${pkgdir}/usr/lib
    cp -rf finalshelldata ${pkgdir}/usr/lib
    cd "${srcdir}"/finalshelldata
    sed -i 's/sudo\ -b //g' "${pkgdir}"/usr/lib/finalshelldata/start

    mkdir -p "${pkgdir}"/usr/share/icons/hicolor/scalable/apps
    mkdir -p "${pkgdir}"/usr/share/applications

    install -m 644 img/finalshell.png "${pkgdir}"/usr/share/icons/hicolor/scalable/apps
    install -m 644 finalshell.desktop "${pkgdir}"/usr/share/applications

    chmod -R 777 "${pkgdir}"/usr/lib/finalshelldata
    chmod +x "${pkgdir}"/usr/lib/finalshelldata/start
}