diff --git a/debian/changelog b/debian/changelog index 6d8d068..0772b9d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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) + * Initial release. -- ferreo Wed, 18 Jan 2023 21:48:14 +0000 diff --git a/debian/control b/debian/control index 0bcd8e0..6c61bc6 100644 --- a/debian/control +++ b/debian/control @@ -1,19 +1,26 @@ -Source: upstream-name -Section: admin +Source: heroic-games-launcher +Section: games Priority: optional -Maintainer: name +Maintainer: ferreo 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 \ No newline at end of file diff --git a/debian/extras/heroic.desktop b/debian/extras/heroic.desktop new file mode 100644 index 0000000..55b83d0 --- /dev/null +++ b/debian/extras/heroic.desktop @@ -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; diff --git a/debian/extras/icons/hicolor/1024x1024/apps/heroic.png b/debian/extras/icons/hicolor/1024x1024/apps/heroic.png new file mode 100644 index 0000000..3ff251c Binary files /dev/null and b/debian/extras/icons/hicolor/1024x1024/apps/heroic.png differ diff --git a/debian/extras/icons/hicolor/128x128/apps/heroic.png b/debian/extras/icons/hicolor/128x128/apps/heroic.png new file mode 100644 index 0000000..5ca582a Binary files /dev/null and b/debian/extras/icons/hicolor/128x128/apps/heroic.png differ diff --git a/debian/extras/icons/hicolor/16x16/apps/heroic.png b/debian/extras/icons/hicolor/16x16/apps/heroic.png new file mode 100644 index 0000000..7574169 Binary files /dev/null and b/debian/extras/icons/hicolor/16x16/apps/heroic.png differ diff --git a/debian/extras/icons/hicolor/256x256/apps/heroic.png b/debian/extras/icons/hicolor/256x256/apps/heroic.png new file mode 100644 index 0000000..2b61e8d Binary files /dev/null and b/debian/extras/icons/hicolor/256x256/apps/heroic.png differ diff --git a/debian/extras/icons/hicolor/32x32/apps/heroic.png b/debian/extras/icons/hicolor/32x32/apps/heroic.png new file mode 100644 index 0000000..329f5ec Binary files /dev/null and b/debian/extras/icons/hicolor/32x32/apps/heroic.png differ diff --git a/debian/extras/icons/hicolor/48x48/apps/heroic.png b/debian/extras/icons/hicolor/48x48/apps/heroic.png new file mode 100644 index 0000000..74ce558 Binary files /dev/null and b/debian/extras/icons/hicolor/48x48/apps/heroic.png differ diff --git a/debian/extras/icons/hicolor/512x512/apps/heroic.png b/debian/extras/icons/hicolor/512x512/apps/heroic.png new file mode 100644 index 0000000..f0999a4 Binary files /dev/null and b/debian/extras/icons/hicolor/512x512/apps/heroic.png differ diff --git a/debian/extras/icons/hicolor/64x64/apps/heroic.png b/debian/extras/icons/hicolor/64x64/apps/heroic.png new file mode 100644 index 0000000..74c5951 Binary files /dev/null and b/debian/extras/icons/hicolor/64x64/apps/heroic.png differ diff --git a/debian/rules b/debian/rules index 64a084a..be36671 100755 --- a/debian/rules +++ b/debian/rules @@ -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 $@ diff --git a/main.sh b/main.sh index d80ca48..8115d62 100755 --- a/main.sh +++ b/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/ \ No newline at end of file