summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b440591d52c501491abc4a4f6a6331fbca594c2 (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
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
# Contributor : HeartsDo <heartsdo[at]vivaldi[dot]net>
# Contributor : Colin Berry <colinb969 at gmail dot com>
pkgname=flashpoint-bin
_pkgname=Flashpoint
pkgver=13
pkgrel=2
pkgdesc="Launcher for BlueMaxima's Flashpoint - Infinity Edition."
arch=('x86_64')
url="https://flashpointarchive.org"
_ghurl="https://github.com/FlashpointProject"
license=('LicenseRef-freeware')
depends=(
    'nss>=3.0'
    'php'
    'gtk3'
    'libxss'
    'wine'
    'pipewire-pulse'
    'xorg-server'
    'lib32-libxcomposite'
    'sdl2'
    'java-runtime'
)
makedepends=(
    'gendesk'
    'p7zip'
)
optdepends=(
    'flashplayer-standalone: native Flash support'
    'gtk2'
    'libxt'
)
options=(
    '!strip'
    '!emptydirs'
)
noextract=("${pkgname%-bin}-${pkgver}.7z")
source=(
    "${pkgname%-bin}-${pkgver}.7z::https://download.unstable.life/upload/fp${pkgver//./}_linux_20240425m.7z"
    "${pkgname%-bin}.png::${url}/w/resources/assets/path18-mw.png"
)
sha256sums=('b059a8076841a582229c90ced7bc016f08046613de105be057a9913ad6ae57d3'
            'cd1d182eb10cb346ec30fe730d3b42fe8ed66bd537c7ac835ccdab312f4e6260')
build(){
    install -Dm755 -d "${srcdir}/opt/${pkgname%-bin}"
    7zr x "${srcdir}/${pkgname%-bin}-${pkgver}.7z" -o"${srcdir}/opt/${pkgname%-bin}"
    gendesk -f -n -q --pkgname="${pkgname%-bin}" --pkgdesc="${pkgdesc}" --categories="Game" --name="${_pkgname}" --exec="${pkgname%-bin}"
}
package(){
    cp -r "${srcdir}/opt" "${pkgdir}"
    install -Dm755 -d "${pkgdir}/usr/bin"
    ln -sf "/opt/${pkgname%-bin}/start-${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}"
    install -Dm644 "${srcdir}/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
    sudo chown -R "${USER}" "${pkgdir}/opt/${pkgname%-bin}"
}