summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 093874ef805382f2dc31e95bc5037bcb68432947 (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
# Maintainer: Youkou Tenhouin <youkou@tenhou.in>
# Contributor: meanlint <meanlint@outlook.com>
# Contributor: Robert Baker <reiichi001@gmail.com>
pkgname=xivlauncher-cn-bin-no-conflict
pkgver=1.1.2.7
pkgrel=1
pkgdesc="Custom Launcher for Final Fantasy XIV Online CN (Not conflicted with xivlauncher)"
arch=('x86_64')
url='https://github.com/ottercorp/XIVLauncher.Core'
license=('GPL')
depends=(
    'aria2'
    'sdl2'
    'libsecret'
    'desktop-file-utils'
    'jxrlib'
)
options=('!strip')
provides=("xivlauncher-cn=${pkgver}")
conflicts=("xivlauncher-cn" "xivlauncher-cn-bin")
source=(
    "xivlauncher-core-cn-${pkgver}.tar.gz::https://github.com/ottercorp/XIVLauncher.Core/releases/download/${pkgver}/XIVLauncher.Core-arch.tar.gz"
    "512.png"
    "XIVLauncherCN.desktop"
    "xivlauncher-core-cn"
)
sha512sums=('8b4c17dcff6ffa5806bb77fe18328b75763bca4da8996a6ce76d8751c1b7df5c3e151d07c5d54e246c181e62ae999cfb71002133a122f992e787c23a96470bb4'
            '3a95e052263310fbcfb67be8d229c8d71baecb1a8b7b19e4499039362f32b1a80e557cd219860c06de2098a1432e6fa802b772612c3c8805197299907f314974'
            'c6f90684f5b6c1e0f83b88c4a7cdc1c258b4cb00d03b74806cd00ce7ae51751c270956337f2cf9583867e43580a937fee0940c54640202d8a59ba0d5cced3ef4'
            '71aa8d36c1f18eec6706dbb7d2518b8995c5d8153fcc32a5b29ae3d9738f6c2248fab181bb758750afddb78a8a1a01fddb28c5b1159a15c10db5f6de1065e575')

package() {
    install -d "${pkgdir}/usr/bin/"
    install -d "${pkgdir}/opt/XIVLauncherCN/"
    install -D -m644 "${srcdir}/XIVLauncherCN.desktop" "${pkgdir}/usr/share/applications/XIVLauncherCN.desktop"
    install -D -m644 "${srcdir}/512.png" "${pkgdir}/usr/share/pixmaps/xivlaunchercn.png"
    cp -r "${srcdir}/." "${pkgdir}/opt/XIVLauncherCN/"
    ln -s ../../opt/XIVLauncherCN/XIVLauncher.Core "${pkgdir}/usr/bin/XIVLauncher.Core.CN"
    install -D -m755  "${srcdir}/xivlauncher-core-cn" "${pkgdir}/usr/bin/xivlauncher-core-cn"
}