mirror of
https://github.com/xgui4/LCE-Qt-Launcher.git
synced 2026-07-16 02:40:38 +00:00
better packages managementd
This commit is contained in:
58
packages/linux/dev/PKGBUILD
Normal file
58
packages/linux/dev/PKGBUILD
Normal file
@@ -0,0 +1,58 @@
|
||||
# Maintainer: Xgui4
|
||||
pkgname=lce-qt-launcher-beta
|
||||
pkgver=r143.71ecfaf
|
||||
pkgrel=1
|
||||
pkgdesc="A custom Minecraft LCE Launcher written in Python and Qt with GNU/Linux support in mind. (Beta Build)"
|
||||
arch=('any')
|
||||
url="https://github.com/xgui4/LCE-Qt-Launcher"
|
||||
license=('GPL3')
|
||||
depends=(
|
||||
'python'
|
||||
'pyside6'
|
||||
'python-requests'
|
||||
'python-platformdirs'
|
||||
'python-rich'
|
||||
)
|
||||
makedepends=(
|
||||
'git'
|
||||
'bash'
|
||||
'curl'
|
||||
'python-build'
|
||||
'python-installer'
|
||||
'python-hatchling'
|
||||
'python-wheel'
|
||||
'qt6-tools'
|
||||
)
|
||||
optdepends=(
|
||||
'wine: Allow to launch non-Linux-native Minecraft LCE ports'
|
||||
'steam: Allow for Steam integration'
|
||||
'ttc-monocraft: Minecraft Font for the UI (Availaible in the AUR)'
|
||||
)
|
||||
|
||||
provides=("${pkgname%-dev}" "${pkgname%}")
|
||||
conflicts=("${pkgname%-nightly}" "${pkgname%}")
|
||||
source=("${pkgname}::git+${url}.git#branch=pre-alpha")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
# cutting off 'foo-' prefix that presents in the git tag
|
||||
git describe --long --abbrev=7 | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
rm -rf dist/ build/
|
||||
/usr/bin/python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
/usr/bin/python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -d "$pkgdir/opt/lce_qt_launcher"
|
||||
cp -r data assets "$pkgdir"
|
||||
install -Dm644 data/lce_qt_launcher.ini "$pkgdir/etc/lce_qt_launcher.ini"
|
||||
install -Dm644 "packages/github.io.xgui4.lce_qt_launcher.desktop" "$pkgdir/usr/share/applications/github.io.xgui4.lce_qt_launcher.desktop"
|
||||
install -Dm644 license.md -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
install -Dm644 readme.md code-of-conduct.md -t "$pkgdir/usr/share/doc/$pkgname/"
|
||||
}
|
||||
58
packages/linux/nigthly/PKGBUILD
Normal file
58
packages/linux/nigthly/PKGBUILD
Normal file
@@ -0,0 +1,58 @@
|
||||
# Maintainer: Xgui4
|
||||
pkgname=lce-qt-launcher-git
|
||||
pkgver=r149.804311b
|
||||
pkgrel=1
|
||||
pkgdesc="A custom Minecraft LCE Launcher written in Python and Qt with GNU/Linux support in mind. (Nigthly/Git Build)"
|
||||
arch=('any')
|
||||
url="https://github.com/xgui4/LCE-Qt-Launcher"
|
||||
license=('GPL3')
|
||||
depends=(
|
||||
'python'
|
||||
'pyside6'
|
||||
'python-requests'
|
||||
'python-platformdirs'
|
||||
'python-rich'
|
||||
)
|
||||
makedepends=(
|
||||
'git'
|
||||
'bash'
|
||||
'curl'
|
||||
'python-build'
|
||||
'python-installer'
|
||||
'python-hatchling'
|
||||
'python-wheel'
|
||||
'qt6-tools'
|
||||
)
|
||||
optdepends=(
|
||||
'wine: Allow to launch non-Linux-native Minecraft LCE ports'
|
||||
'steam: Allow for Steam integration'
|
||||
'ttc-monocraft: Minecraft Font for the UI (Availaible in the AUR)'
|
||||
)
|
||||
|
||||
provides=("${pkgname%-dev}" "${pkgname%}")
|
||||
conflicts=("${pkgname%-nightly}" "${pkgname%}")
|
||||
source=("${pkgname}::git+${url}.git#branch=nightly")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
# cutting off 'foo-' prefix that presents in the git tag
|
||||
git describe --long --abbrev=7 | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
rm -rf dist/ build/
|
||||
/usr/bin/python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
/usr/bin/python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -d "$pkgdir/opt/lce_qt_launcher"
|
||||
cp -r data assets "$pkgdir"
|
||||
install -Dm644 data/lce_qt_launcher.ini "$pkgdir/etc/lce_qt_launcher.ini"
|
||||
install -Dm644 "packages/io.github.xgui4.lce_qt_launcher.desktop" "$pkgdir/usr/share/applications/github.io.xgui4.lce_qt_launcher.desktop"
|
||||
install -Dm644 license.md -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
install -Dm644 readme.md code-of-conduct.md -t "$pkgdir/usr/share/doc/$pkgname/"
|
||||
}
|
||||
52
packages/linux/stable/PKGBUILD
Normal file
52
packages/linux/stable/PKGBUILD
Normal file
@@ -0,0 +1,52 @@
|
||||
# Maintainer: Xgui4
|
||||
pkgname=lce-qt-launcher
|
||||
pkgver=0.0.1
|
||||
pkgrel=1
|
||||
pkgdesc="A custom Minecraft LCE Launcher written with PySide6 (Python) with GNU/Linux support in mind. (Master/Stable Branch)"
|
||||
arch=('any')
|
||||
url="https://github.com/xgui4/LCE-Qt-Launcher"
|
||||
license=('GPL-3.0-or-later')
|
||||
depends=(
|
||||
'python'
|
||||
'pyside6'
|
||||
'python-requests'
|
||||
'python-platformdirs'
|
||||
'python-rich'
|
||||
)
|
||||
makedepends=(
|
||||
'git'
|
||||
'bash'
|
||||
'curl'
|
||||
'python-build'
|
||||
'python-installer'
|
||||
'python-hatchling'
|
||||
'python-wheel'
|
||||
'qt6-tools'
|
||||
)
|
||||
optdepends=(
|
||||
'wine: Allow to launch non-Linux-native Minecraft LCE ports'
|
||||
'steam: Allow for Steam integration'
|
||||
'ttc-monocraft: Minecraft Font for the UI (Availaible in the AUR)'
|
||||
)
|
||||
provides=("${pkgname%-dev}" "${pkgname%}")
|
||||
conflicts=("${pkgname%-nightly}" "${pkgname%}")
|
||||
source=("${pkgname}::git+${url}.git#branch=master")
|
||||
backup=("etc/lce-qt-launcher")
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
rm -rf dist/ build/
|
||||
/usr/bin/python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
/usr/bin/python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
install -d "$pkgdir/opt/lce_qt_launcher"
|
||||
cp -r data assets "$pkgdir"
|
||||
install -Dm644 data/lce_qt_launcher.ini "$pkgdir/etc/lce_qt_launcher.ini"
|
||||
install -Dm644 "packages/io.github.xgui4.lce_qt_launcher.desktop" "$pkgdir/usr/share/applications/io.github.xgui4.lce_qt_launcher.desktop"
|
||||
install -Dm644 license.md -t "$pkgdir/usr/share/licenses/$pkgname/"
|
||||
install -Dm644 readme.md code-of-conduct.md -t "$pkgdir/usr/share/doc/$pkgname/"
|
||||
install -Dm644 "packages/io.github.xgui4.lce_qt_launcher.metainfo.xml" "$pkgdir/usr/share/metainfo/io.github.xgui4.lce_qt_launcher.gtk.metainfo.xml"
|
||||
}
|
||||
Reference in New Issue
Block a user