blob: 6de580a176439f0930a97c865616db8e752fb7ec (
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
|
# Maintainer: hmarcelino <henry_marcelino at outlook dot com>
# Contributor: bbaster <bbaster at tutanota dot org>
pkgname=flashpoint-launcher-bin
pkgver=14.0.3_20251103
_launcherver=${pkgver%_*}
_timestamp=${pkgver#*_}
pkgrel=6
pkgdesc="An archive for games and animations from the web."
arch=('x86_64')
url="https://flashpointarchive.org/"
license=('MIT')
provides=(flashpoint-launcher)
conflicts=(flashpoint-launcher)
depends=(
'pulse-native-provider'
'lib32-libxcomposite'
'lib32-libpulse'
'gtk3'
'nss'
'php'
'7zip'
'bash'
)
optdepends=(
'gtk2: native Flash support'
'libxt: native Flash support'
)
options=(
'!strip'
'!emptydirs'
)
source=("https://download.flashpointarchive.org/upload/fp${_launcherver}_lin_${_timestamp}.7z")
sha256sums=('b3ff524f6ba3157b1b0661207e24ae6c478b12fccccca55720c2c31d3034f509')
prepare() {
patch -p1 -i ../setup-desktop-entry.patch -d "${srcdir}"
patch -p1 -i ../start-flashpoint.patch -d "${srcdir}"
}
package() {
echo "Copying data files ..."
mkdir -vp "${pkgdir}/opt/Flashpoint/"
find "${srcdir}/" -maxdepth 1 -not -name "fp${_launcherver}_lin_main_${_timestamp}.7z" -exec cp -rp {} "${pkgdir}/opt/Flashpoint/" \;
echo "Creating a launcher script wrapper..."
mkdir -vp "${pkgdir}/usr/bin"
cp -p ../flashpoint-launcher.sh "${pkgdir}/usr/bin/flashpoint-launcher"
echo "Creating the desktop file..."
ENTRY="${srcdir}/flashpoint-archive.desktop" FP_DIR="/opt/Flashpoint/" "./setup-desktop-entry.sh"
echo "Installing licenses and desktop file..."
mkdir -vp "${pkgdir}/usr/share/licenses"
cp -rp "${pkgdir}/opt/Flashpoint/Launcher/licenses/" "${pkgdir}/usr/share/licenses/flashpoint"
install -Dm644 "${srcdir}/flashpoint-archive.desktop" "${pkgdir}/usr/share/applications/flashpoint-archive.desktop"
echo "Removing unneeded src folder..."
rm -rf "${pkgdir}/opt/Flashpoint/src"
echo "Removing unneeded Libraries folder..."
rm -rf "${pkgdir}/opt/Flashpoint/Libraries"
}
|