makedeb
!!!UNFINISHED!!! The Legend of Zelda: A Link to the Dream - Remake of The Legend of Zelda: Link's Awakening !!!UNFINISHED!!!
Click here to go back to the commit logs for zelda-alttd-alpha-git.
Hash: fb560f863aeccb5dbb619829309153746a3e4f38
Message: rename zelda-alttd-alpha-git
diff --git a/.SRCINFO b/.SRCINFO
index c868f55..3e256a8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,19 @@
generated-by = makedeb
-pkgname = zelda-alttd-git
-pkgbase = zelda-alttd-git
-pkgdesc = The Legend of Zelda: A Link to the Dream - Remake of The Legend of Zelda: Link's Awakening (Git version)
-pkgrel = 5
+pkgname = zelda-alttd-alpha-git
+pkgbase = zelda-alttd-alpha-git
+pkgdesc = !!!UNFINISHED!!! The Legend of Zelda: A Link to the Dream - Remake of The Legend of Zelda: Link's Awakening !!!UNFINISHED!!!
+pkgrel = 0
pkgver = 1.f96b5ea
url = https://www.solarus-games.org/en/games/the-legend-of-zelda-a-link-to-the-dream
arch = all
+conflicts = zelda-alttd-git
depends = solarus>=1.6.0
license = custom
makedepends = cmake
makedepends = git
makedepends = zip
-source = zelda-alttd-git::git+https://gitlab.com/zeldaforce/zelda-alttd.git
+provides = zelda-alttd-git
+source = zelda-alttd-alpha-git::git+https://gitlab.com/zeldaforce/zelda-alttd.git
source = alttd-english::git+https://gitlab.com/grawprog/alttd-english.git
b2sums = SKIP
b2sums = SKIP
diff --git a/.gitignore b/.gitignore
index 4571bed..9993c0c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
alttd-english/
error.txt
-pkg
-src
-zelda-alttd-git*
+pkg/
+src/
+zelda-alttd-alpha-git*
diff --git a/PKGBUILD b/PKGBUILD
index bb6857d..135b1ad 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,18 @@
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
# Contributor: Qontinuum (AUR) <qontinuum.dev@protonmail.ch>
-pkgname=zelda-alttd-git
+pkgname=zelda-alttd-alpha-git
_name="The Legend of Zelda: A Link to the Dream"
pkgver=1.f96b5ea
-pkgrel=5
-pkgdesc="The Legend of Zelda: A Link to the Dream - Remake of The Legend of Zelda: Link's Awakening (Git version)"
+pkgrel=0
+pkgdesc="!!!UNFINISHED!!! The Legend of Zelda: A Link to the Dream - Remake of The Legend of Zelda: Link's Awakening !!!UNFINISHED!!!"
arch=('all')
url='https://www.solarus-games.org/en/games/the-legend-of-zelda-a-link-to-the-dream'
license=('custom')
depends=('solarus>=1.6.0')
makedepends=('cmake' 'git' 'zip')
+provides=('zelda-alttd-git')
+conflicts=('zelda-alttd-git')
source=("$pkgname::git+https://gitlab.com/zeldaforce/zelda-alttd.git"
"alttd-english::git+https://gitlab.com/grawprog/alttd-english.git")
b2sums=('SKIP'
@@ -22,20 +24,20 @@ pkgver() {
}
prepare() {
-sed -i 's/set(quest_name "zelda-alttd")/set(quest_name "zelda-alttd-git")/' "$pkgname/CMakeLists.txt"
-cp -R "$srcdir/alttd-english/languages/en/" "$srcdir/zelda-alttd-git/data/languages/"
-sed -i 's!language{ id = "fr", description = "Français" }!language{ id = "en", description = "English" }\nlanguage{ id = "fr", description = "Français" }!' "$srcdir/zelda-alttd-git/data/project_db.dat"
+ sed -i 's/set(quest_name "zelda-alttd")/set(quest_name "zelda-alttd-alpha-git")/' "$pkgname/CMakeLists.txt"
+ cp -R "$srcdir/alttd-english/languages/en/" "$srcdir/$pkgname/data/languages/"
+ sed -i 's!language{ id = "fr", description = "Français" }!language{ id = "en", description = "English" }\nlanguage{ id = "fr", description = "Français" }!' "$srcdir/$pkgname/data/project_db.dat"
}
build() {
cd "$pkgname"
cmake -DCMAKE_INSTALL_PREFIX='/usr' .
make
-}
-package() {
+export _WRAPPER="#!/bin/sh
+exec solarus-run /usr/share/games/solarus/$pkgname/data.solarus \"\$@\""
-_DESKTOPFILE="[Desktop Entry]
+export _DESKTOPFILE="[Desktop Entry]
Version=1.0
Type=Application
Name=$_name
@@ -45,18 +47,25 @@ Icon=$pkgname
Terminal=false
StartupNotify=false
Categories=Game;ActionGame;"
+}
+package() {
+ # descktop file
install -m644 -d "$pkgdir/usr/share/applications"
echo "$_DESKTOPFILE" > "$pkgdir/usr/share/applications/$pkgname.desktop"
-
+ # pixmap
install -Dm644 "$srcdir/$pkgname/data/logos/icon_128.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
+ # doc
install -Dm644 "$srcdir/$pkgname/ChangeLog" "${pkgdir}/usr/share/doc/${pkgname}/changelog"
install -Dm644 "$srcdir/$pkgname/readme.md" "${pkgdir}/usr/share/doc/${pkgname}/readme"
gzip "${pkgdir}/usr/share/doc/${pkgname}/changelog"
-
+ # install
cd "$pkgname"
make DESTDIR="$pkgdir/" install
-
- echo -e "#!/bin/sh\nsolarus-run /usr/share/solarus/$pkgname/data.solarus $*" > "$pkgdir/usr/bin/$pkgname"
- chmod 755 "$pkgdir/usr/bin/$pkgname"
+ # adjustments
+ install -d "${pkgdir}/usr/share/games"
+ mv -T "${pkgdir}/usr/share/solarus" "${pkgdir}/usr/share/games/solarus"
+ mv -T "${pkgdir}/usr/bin" "${pkgdir}/usr/games"
+ echo "$_WRAPPER" > "$pkgdir/usr/games/$pkgname"
+ chmod 755 "$pkgdir/usr/games/$pkgname"
}