Heroic packaging sucks
4
debian/changelog
vendored
@ -1,5 +1,5 @@
|
||||
upstream-name (1.0-101pika1) pika; urgency=medium
|
||||
heroic-games-launcher (2.15.2-101pika1) pika; urgency=medium
|
||||
|
||||
* Initial release. (Closes: #nnnn) <nnnn is the bug number of your ITP>
|
||||
* Initial release.
|
||||
|
||||
-- ferreo <harderthanfire@gmail.com> Wed, 18 Jan 2023 21:48:14 +0000
|
||||
|
37
debian/control
vendored
@ -1,19 +1,26 @@
|
||||
Source: upstream-name
|
||||
Section: admin
|
||||
Source: heroic-games-launcher
|
||||
Section: games
|
||||
Priority: optional
|
||||
Maintainer: name <email>
|
||||
Maintainer: ferreo <harderthanfire@gmail.com>
|
||||
Standards-Version: 4.6.1
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Rules-Requires-Root: no
|
||||
Build-Depends:
|
||||
debhelper-compat (= 13),
|
||||
nodejs,
|
||||
npm,
|
||||
libgtk-3-dev,
|
||||
libnotify-dev,
|
||||
libnss3-dev,
|
||||
libxss-dev,
|
||||
libxtst-dev,
|
||||
libatspi2.0-dev,
|
||||
uuid-dev,
|
||||
libsecret-1-dev,
|
||||
Rules-Requires-Root: yes
|
||||
|
||||
Package: pkgname1
|
||||
Package: heroic-games-launcher
|
||||
Architecture: linux-any
|
||||
# Delete any of these lines if un-used
|
||||
Depends: ${misc:Depends}, depends
|
||||
Recommends: high priority optdepends
|
||||
Conflicts: conflicts
|
||||
Suggests: low priority optdepends
|
||||
Breaks: also conflicts!?
|
||||
Provides: provides
|
||||
#
|
||||
Description: pkgdesc
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
${shlibs:Depends},
|
||||
Recommends: libappindicator3-1
|
||||
Description: Native GOG, Epic Games and Amazon games launcher for Linux
|
11
debian/extras/heroic.desktop
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
[Desktop Entry]
|
||||
Name=Heroic Games Launcher
|
||||
Exec=/opt/Heroic/heroic %U
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=heroic
|
||||
StartupWMClass=Heroic
|
||||
Comment[de]=Ein Open Source Spielelauncher for GOG und Epic Games
|
||||
Comment=An Open Source Launcher for GOG and Epic Games
|
||||
MimeType=x-scheme-handler/heroic;
|
||||
Categories=Game;
|
BIN
debian/extras/icons/hicolor/1024x1024/apps/heroic.png
vendored
Normal file
After Width: | Height: | Size: 255 KiB |
BIN
debian/extras/icons/hicolor/128x128/apps/heroic.png
vendored
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
debian/extras/icons/hicolor/16x16/apps/heroic.png
vendored
Normal file
After Width: | Height: | Size: 893 B |
BIN
debian/extras/icons/hicolor/256x256/apps/heroic.png
vendored
Normal file
After Width: | Height: | Size: 29 KiB |
BIN
debian/extras/icons/hicolor/32x32/apps/heroic.png
vendored
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
debian/extras/icons/hicolor/48x48/apps/heroic.png
vendored
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
debian/extras/icons/hicolor/512x512/apps/heroic.png
vendored
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
debian/extras/icons/hicolor/64x64/apps/heroic.png
vendored
Normal file
After Width: | Height: | Size: 4.9 KiB |
70
debian/rules
vendored
@ -5,63 +5,21 @@
|
||||
export DH_VERBOSE = 1
|
||||
export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
|
||||
|
||||
## === the chain of command ===
|
||||
## debuild runs a chain of dh functions in the following order:
|
||||
## dh_testdir
|
||||
## dh_clean
|
||||
## dh_auto_clean
|
||||
## dh_update_autotools_config
|
||||
## dh_autoreconf
|
||||
## dh_auto_configure
|
||||
## dh_prep
|
||||
## dh_build
|
||||
## dh_auto_build
|
||||
## dh_install
|
||||
## dh_auto_install
|
||||
## dh_installdocs
|
||||
## dh_installchangelogs
|
||||
## dh_perl
|
||||
## dh_link
|
||||
## dh_strip_nondeterminism
|
||||
## dh_compress
|
||||
## dh_fixperms
|
||||
## dh_missing
|
||||
## dh_dwz
|
||||
## dh_strip
|
||||
## dh_makeshlibs
|
||||
## dh_shlibdeps
|
||||
## dh_installdeb
|
||||
## dh_gencontrol
|
||||
## but you are most likely to only need to override the following:
|
||||
## dh_clean
|
||||
## dh_auto_configure
|
||||
## dh_build
|
||||
## dh_install
|
||||
override_dh_auto_build:
|
||||
npm install -g pnpm
|
||||
pnpm install
|
||||
pnpm run download-helper-binaries
|
||||
pnpm dist:linux tar.xz
|
||||
|
||||
## === End end of region ===
|
||||
override_dh_install:
|
||||
install -d "debian/heroic-games-launcher/opt/heroic"
|
||||
cp -r dist/linux-unpacked/* "debian/heroic-games-launcher/opt/heroic"
|
||||
install -d "debian/heroic-games-launcher/usr/bin"
|
||||
ln -s /opt/heroic/heroic "debian/heroic-games-launcher/usr/bin/heroic"
|
||||
install -d "debian/heroic-games-launcher/usr/share"
|
||||
cp -r "debian/extras/icons" "debian/heroic-games-launcher/usr/share/"
|
||||
install -d "debian/heroic-games-launcher/usr/share/applications/"
|
||||
install -D "debian/extras/heroic.desktop" "debian/heroic-games-launcher/usr/share/applications/heroic.desktop"
|
||||
|
||||
## === overriding dh functions ===
|
||||
## by default all dh functions will run a specific command based on the build system selected by "dh $@"
|
||||
## if you have a makefile that does everything you need this is fine,
|
||||
## but most likely you have no MakeFile and you want to add your own commands
|
||||
## Note : overrides must be places above %:
|
||||
## So here's a few examples:
|
||||
|
||||
## overriding dh_clean to make it not delete rust vendor files:
|
||||
#override_dh_clean:
|
||||
# echo "disabled"
|
||||
|
||||
## overriding dh_auto_configure to add custom configs:
|
||||
#override_dh_auto_configure:
|
||||
# $(srcdir)/configure -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_DATADIR=/usr/share -DCMAKE_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu -DBUILD_PLUGIN=OFF
|
||||
|
||||
## overriding dh_install to install files to a package:
|
||||
#override_dh_auto_configure:
|
||||
# mkdir -p debian/pikman/usr/bin
|
||||
# cp pikman debian/pikman/usr/bin/
|
||||
|
||||
## === End end of region ===
|
||||
|
||||
## This here will start the build:
|
||||
%:
|
||||
dh $@
|
||||
|
13
main.sh
@ -6,15 +6,14 @@ set -e
|
||||
|
||||
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
||||
|
||||
VERSION="1.0"
|
||||
VERSION="2.15.2"
|
||||
|
||||
# Clone Upstream
|
||||
mkdir -p ./src-pkg-name
|
||||
cp -rvf ./debian ./src-pkg-name/
|
||||
cd ./src-pkg-name/
|
||||
|
||||
git clone -b v"$VERSION" https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher heroic-games-launcher
|
||||
cp -rvf ./debian ./heroic-games-launcher/
|
||||
cd ./heroic-games-launcher
|
||||
# Get build deps
|
||||
LOGNAME=root dh_make --createorig -y -l -p src-pkg-name_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
||||
LOGNAME=root dh_make --createorig -y -l -p heroic-games-launcher_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
||||
apt-get build-dep ./ -y
|
||||
|
||||
# Build package
|
||||
@ -23,4 +22,4 @@ dpkg-buildpackage --no-sign
|
||||
# Move the debs to output
|
||||
cd ../
|
||||
mkdir -p ./output
|
||||
mv ./*.deb ./output/
|
||||
mv ./*.deb ./output/
|