From 428274d7b8aaacbfeb27e7f2583604a485695528 Mon Sep 17 00:00:00 2001 From: CactiChameleon9 <51231053+CactiChameleon9@users.noreply.github.com> Date: Fri, 27 May 2022 18:21:03 +0100 Subject: [PATCH] Change to shattered --- .gitignore | 2 +- LICENSE | 13 ------------- README.md | 12 ------------ build.sh | 26 +++++++++----------------- clickable.json | 11 +++++++++-- codium.apparmor | 4 ---- codium.desktop | 9 --------- codium.wrapper | 8 -------- manifest.json | 14 +++++++------- 9 files changed, 26 insertions(+), 73 deletions(-) delete mode 100644 LICENSE delete mode 100644 README.md delete mode 100644 codium.apparmor delete mode 100644 codium.desktop delete mode 100755 codium.wrapper diff --git a/.gitignore b/.gitignore index 180e5fd..fe0d478 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,5 @@ build out/ src/ pkg/ -*.tar.gz +*.jar PKGBUILD diff --git a/LICENSE b/LICENSE deleted file mode 100644 index ed720b0..0000000 --- a/LICENSE +++ /dev/null @@ -1,13 +0,0 @@ -MIT License - -Copyright (c) 2018-present The VSCodium contributors -Copyright (c) 2018-present Peter Squicciarini -Copyright (c) 2015-present Microsoft Corporation - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - diff --git a/README.md b/README.md deleted file mode 100644 index 8990790..0000000 --- a/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# Visual Studio Code - -Open Source version of Microsoft's Code Editor - - -## License - -Copyright (c) 2018-present The VSCodium contributors -Copyright (c) 2018-present Peter Squicciarini -Copyright (c) 2015-present Microsoft Corporation - -Licensed under the MIT license diff --git a/build.sh b/build.sh index 733819b..8923ec4 100644 --- a/build.sh +++ b/build.sh @@ -1,33 +1,25 @@ #!/bin/bash -sed -e - -rm *.tar.gz - -dlarch="$1" -if [ "$1" == "amd64" ]; then - dlarch="x64" -fi +# sed -e CLICK_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH) CLICK_FRAMEWORK=ubuntu-sdk-16.04.5 -pkgver=1.65.0 +pkgver=v1.2.3 srcdir=$BUILD_DIR pkgdir=$INSTALL_DIR mkdir -p $srcdir $pkgdir -wget https://github.com/VSCodium/vscodium/releases/download/$pkgver/VSCodium-linux-$dlarch-$pkgver.tar.gz -tar xvf ./VSCodium-linux-$dlarch-$pkgver.tar.gz -C $pkgdir +wget https://github.com/00-Evan/shattered-pixel-dungeon/releases/download/$pkgver/ShatteredPD-$pkgver-Desktop.jar -O ShatteredPD.jar +cp ShatteredPD.jar $pkgdir/ cp $ROOT/manifest.json $pkgdir/ sed -i "s/@CLICK_ARCH@/$CLICK_ARCH/g" $pkgdir/manifest.json sed -i "s/@CLICK_FRAMEWORK@/$CLICK_FRAMEWORK/g" $pkgdir/manifest.json -cp $ROOT/codium.apparmor $pkgdir/ -cp $ROOT/codium.desktop $pkgdir/ -cp $ROOT/codium.wrapper $pkgdir/ -chmod a+x $pkgdir/codium.wrapper -chown root $pkgdir/chrome-sandbox -chmod 4755 $pkgdir/chrome-sandbox +cp $ROOT/shatteredpd.apparmour $pkgdir/ +cp $ROOT/shatteredpd.desktop $pkgdir/ +cp $ROOT/shatteredpd.wrapper $pkgdir/ +cp $ROOT/shatteredpd.png $pkgdir/ +chmod a+x $pkgdir/shatteredpd.wrapper exit 0 diff --git a/clickable.json b/clickable.json index a355c60..6762fd2 100644 --- a/clickable.json +++ b/clickable.json @@ -14,9 +14,16 @@ "libglib2.0-0", "libpng16-16", "libgtk-3-0", - "libdbusmenu-glib4" + "libdbusmenu-glib4", + "default-jdk" ], "install_lib": [ - "/usr/lib/${ARCH_TRIPLET}/libgtk-3.so*" + "/usr/lib/${ARCH_TRIPLET}/libgtk-3.so*", + "/usr/lib/${ARCH_TRIPLET}/libvpx.so.3*", + "/usr/lib/${ARCH_TRIPLET}/libsndio.so.6.1", + "/usr/lib/${ARCH_TRIPLET}/libvorbis.so.0*", + "/usr/lib/${ARCH_TRIPLET}/libSDL2-2.0.so*", + "/usr/lib/${ARCH_TRIPLET}/libsndio.so*", + "/usr/lib/${ARCH_TRIPLET}/libm.so.*" ] } diff --git a/codium.apparmor b/codium.apparmor deleted file mode 100644 index 7bf9ce3..0000000 --- a/codium.apparmor +++ /dev/null @@ -1,4 +0,0 @@ -{ - "template": "unconfined", - "policy_version": 16.04 -} diff --git a/codium.desktop b/codium.desktop deleted file mode 100644 index d4f8742..0000000 --- a/codium.desktop +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -Name=VSCodium -Exec=./codium.wrapper %U -Icon=./resources/app/resources/linux/code.png -Terminal=false -Type=Application -X-Ubuntu-Touch=true -X-Ubuntu-Splash-Color=#FFFFFF -X-Ubuntu-XMir-Enable=true diff --git a/codium.wrapper b/codium.wrapper deleted file mode 100755 index 00d479e..0000000 --- a/codium.wrapper +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -SCALE=$(( $GRID_UNIT_PX / 8 )) - -export GDK_BACKEND=x11 -export GDK_SCALE=$SCALE - -exec ./codium --no-sandbox --force-device-scale-factor=$SCALE "$@" diff --git a/manifest.json b/manifest.json index d337c32..fcaa57e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,15 +1,15 @@ { - "name": "codium.vscodium.com", - "description": "Open Source Code Editor", + "name": "com.shatteredpixel.shatteredpixeldungeon", + "description": "Traditional roguelike game with pixel-art graphics and simple interface", "architecture": "@CLICK_ARCH@", - "title": "VSCodium", + "title": "Shattered Pixel Dungeon", "hooks": { "code": { - "apparmor": "codium.apparmor", - "desktop": "codium.desktop" + "apparmor": "shatteredpd.apparmour", + "desktop": "shatteredpd.desktop" } }, - "version": "1.65.0", - "maintainer": "Alfred Neumayer ", + "version": "1.2.3", + "maintainer": "CactiChameleon9 ", "framework" : "@CLICK_FRAMEWORK@" }