summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4bac5154bc20c302ac29b5c922d01792effd5de (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
# Maintainer:  Ainola
# Contributor: kozec

pkgname=minecraft-technic-launcher
pkgver=4.319
pkgrel=1
pkgdesc=("Choose from thousands of community-made Minecraft modpacks available on the Technic Platform.")
arch=('any')
license=('GPL2')
url=("http://www.technicpack.net/")
depends=('java-runtime' 'xorg-xrandr' 'hicolor-icon-theme')
makedepends=('icoutils')
source=("http://launcher.technicpack.net/launcher${pkgver:0:1}/${pkgver:2}/TechnicLauncher.jar"
        "technic-launcher"
        "technic-launcher.desktop"
        "technic-launcher.install")
sha256sums=("346872fceb877ddbba2f4ac69c73e0e1581f3769b8beae0d70ce328542f5d1ed"
            "bcf657996e45b436382f401457e35d834baa1e35c0c483e7918ab6f93a2252c1"
            "bfea4300dc48adeb726b49125d05b5e65ed368cf08910ced970b1f1c571c4ecd"
            "4e967927f460029e27efd8f2417d18e064d37dfbd3af82393402636f0dfbd095")
install=("technic-launcher.install")
package(){
    cd "$srcdir"
    install -D -m755 "${srcdir}/technic-launcher" "${pkgdir}/usr/bin/technic-launcher"
    install -D -m644 "${srcdir}/TechnicLauncher.jar" "${pkgdir}/usr/share/technic-launcher/technic-launcher.jar"

    # Desktop integration
    install -D -m644 "${srcdir}/technic-launcher.desktop" "${pkgdir}/usr/share/applications/technic-launcher.desktop"
    icotool -x -o "$srcdir" "${srcdir}/net/technicpack/launcher/resources/icon.ico"
    for size in 16 32 48 64; do
        install -D -m644 "${srcdir}/icon_"?"_${size}x${size}x32.png" \
            "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/technic-launcher.png"
    done
}