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
|
-- ferreo <harderthanfire@gmail.com> Wed, 18 Jan 2023 21:48:14 +0000
|
||||||
|
37
debian/control
vendored
@ -1,19 +1,26 @@
|
|||||||
Source: upstream-name
|
Source: heroic-games-launcher
|
||||||
Section: admin
|
Section: games
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Maintainer: name <email>
|
Maintainer: ferreo <harderthanfire@gmail.com>
|
||||||
Standards-Version: 4.6.1
|
Standards-Version: 4.6.1
|
||||||
Build-Depends: debhelper-compat (= 13)
|
Build-Depends:
|
||||||
Rules-Requires-Root: no
|
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
|
Architecture: linux-any
|
||||||
# Delete any of these lines if un-used
|
Depends:
|
||||||
Depends: ${misc:Depends}, depends
|
${misc:Depends},
|
||||||
Recommends: high priority optdepends
|
${shlibs:Depends},
|
||||||
Conflicts: conflicts
|
Recommends: libappindicator3-1
|
||||||
Suggests: low priority optdepends
|
Description: Native GOG, Epic Games and Amazon games launcher for Linux
|
||||||
Breaks: also conflicts!?
|
|
||||||
Provides: provides
|
|
||||||
#
|
|
||||||
Description: pkgdesc
|
|
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 DH_VERBOSE = 1
|
||||||
export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
|
export PIKA_BUILD_ARCH = $(shell cat ../pika-build-arch)
|
||||||
|
|
||||||
## === the chain of command ===
|
override_dh_auto_build:
|
||||||
## debuild runs a chain of dh functions in the following order:
|
npm install -g pnpm
|
||||||
## dh_testdir
|
pnpm install
|
||||||
## dh_clean
|
pnpm run download-helper-binaries
|
||||||
## dh_auto_clean
|
pnpm dist:linux tar.xz
|
||||||
## 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
|
|
||||||
|
|
||||||
## === 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 $@
|
dh $@
|
||||||
|
13
main.sh
@ -6,15 +6,14 @@ set -e
|
|||||||
|
|
||||||
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
||||||
|
|
||||||
VERSION="1.0"
|
VERSION="2.15.2"
|
||||||
|
|
||||||
# Clone Upstream
|
# Clone Upstream
|
||||||
mkdir -p ./src-pkg-name
|
git clone -b v"$VERSION" https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher heroic-games-launcher
|
||||||
cp -rvf ./debian ./src-pkg-name/
|
cp -rvf ./debian ./heroic-games-launcher/
|
||||||
cd ./src-pkg-name/
|
cd ./heroic-games-launcher
|
||||||
|
|
||||||
# Get build deps
|
# 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
|
apt-get build-dep ./ -y
|
||||||
|
|
||||||
# Build package
|
# Build package
|
||||||
@ -23,4 +22,4 @@ dpkg-buildpackage --no-sign
|
|||||||
# Move the debs to output
|
# Move the debs to output
|
||||||
cd ../
|
cd ../
|
||||||
mkdir -p ./output
|
mkdir -p ./output
|
||||||
mv ./*.deb ./output/
|
mv ./*.deb ./output/
|