blob: b25c554ec2c9f6c1f1738be228b190854425a5fb (
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
|
# Maintainer: Ismael Gutiérrez González <frodo_gv@hotmail.com>
pkgname=('rpfm-bin')
pkgver=4.3.8
pkgrel=1
pkgdesc="A modding tool for modern (since Empire) Total War games. Precompiled version."
arch=('x86_64')
url="https://github.com/Frodo45127/rpfm"
license=('MIT')
depends=('libgit2' 'xz' 'p7zip' 'qt5-base' 'qt5-imageformats' 'kcompletion5' 'kiconthemes5' 'ktexteditor5' 'kxmlgui5' 'kwidgetsaddons5' 'breeze-icons')
provides=('rpfm')
conflicts=('rpfm-git')
_programname=('rpfm')
source_x86_64=("$url/releases/download/v${pkgver}/rpfm-v${pkgver}-x86_64-unknown-linux-gnu.tar.zst")
sha256sums_x86_64=('07ff7e37be551852ef524678b3cebf1c7899f5c5db79c03a12a9fab69da1e740')
package() {
# All files should already follow the proper structure inside the tar.gz
# That means we just need to install the executables with different permissions.
install -D -m755 "$srcdir/usr/bin/rpfm_ui" "$pkgdir/usr/bin/rpfm_ui"
install -D -m755 "$srcdir/usr/bin/rpfm_cli" "$pkgdir/usr/bin/rpfm_cli"
# The icons.
cd "$srcdir/usr/share/$_programname/icons/"
for icon in *; do
install -D -m644 $icon "$pkgdir/usr/share/$_programname/icons/$icon"
done
# The language files.
cd "$srcdir/usr/share/$_programname/locale/"
for locale in *; do
install -D -m644 $locale "$pkgdir/usr/share/$_programname/locale/$locale"
done
# The UI files.
cd "$srcdir/usr/share/$_programname/ui/"
for ui_template in *; do
install -D -m644 $ui_template "$pkgdir/usr/share/$_programname/ui/$ui_template"
done
# Shortcut.
install -D -m644 "$srcdir/usr/share/applications/rpfm.desktop" "$pkgdir/usr/share/applications/rpfm.desktop"
# License.
install -D -m644 "$srcdir/usr/share/licenses/$_programname/LICENSE" "$pkgdir/usr/share/licenses/$_programname/LICENSE"
}
|