Initial commit
This commit is contained in:
commit
7d44374d68
9 changed files with 219 additions and 0 deletions
62
PKGBUILD
Normal file
62
PKGBUILD
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
||||
# Contributor: Timo Wilken <timo.21.wilken+aur@gmail.com>
|
||||
|
||||
## options
|
||||
: ${_install_path:=opt}
|
||||
|
||||
## basic info
|
||||
_pkgname="notparadoxlauncher"
|
||||
pkgname="$_pkgname"
|
||||
pkgver=1.3.1
|
||||
pkgrel=3
|
||||
pkgdesc="Alternative for Paradox Launcher"
|
||||
url="https://github.com/shusaura85/notparadoxlauncher"
|
||||
license=(
|
||||
MIT
|
||||
)
|
||||
arch=(x86_64)
|
||||
depends=(
|
||||
bash
|
||||
glibc
|
||||
libx11
|
||||
qt6pas
|
||||
)
|
||||
makedepends=(
|
||||
lazarus
|
||||
)
|
||||
install="$_pkgname.install"
|
||||
option=('!strip' '!debug')
|
||||
_pkgsrc="$pkgname-$pkgver"
|
||||
_pkgext="tar.gz"
|
||||
source=("$_pkgsrc.$_pkgext::$url/archive/refs/tags/v$pkgver.$_pkgext")
|
||||
sha256sums=('475db848596d4c05db8e628a69e1477092291d962fe92e2972525e2c848262a2')
|
||||
|
||||
build() {
|
||||
mkdir -p build
|
||||
|
||||
local _laz_opts=(
|
||||
--build-all
|
||||
--cpu="$CARCH"
|
||||
--lazarusdir="/usr/lib/lazarus"
|
||||
--os=linux
|
||||
--primary-config-path=build
|
||||
--widgetset=qt6
|
||||
)
|
||||
|
||||
for i in "$_pkgsrc"/linux-src/*-src/*.lpi; do
|
||||
lazbuild "${_laz_opts[@]}" "$i"
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 -t "$pkgdir/$_install_path/$_pkgname/" \
|
||||
"$_pkgsrc"/linux-src/launcher-src/output/launcher \
|
||||
"$_pkgsrc"/linux-src/bootstrapper-src/output/bootstrapper-v2
|
||||
|
||||
install -Dm644 "$_pkgsrc"/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
|
||||
install -Dm755 /dev/stdin "$pkgdir/usr/bin/notparadoxlauncher" << END
|
||||
#!/usr/bin/env sh
|
||||
exec "/$_install_path/$_pkgname/launcher"
|
||||
END
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue