summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Riedel2021-02-02 17:19:49 +0100
committerSebastian Riedel2021-02-02 17:19:49 +0100
commit6e7435af870f6bbc50345e8bdcd5729ad68b18af (patch)
tree19a789e67fa937a061fb59f87633f1e6b44f0a0f
parentd71ed71a591b034130faad2f71a7ceb00265aba7 (diff)
downloadaur-6e7435af870f6bbc50345e8bdcd5729ad68b18af.tar.gz
Add icons
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD23
2 files changed, 21 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 739ebe24d16..a1b3c97b3c5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,17 @@
pkgbase = emulicious-bin
pkgdesc = Game Boy, Game Boy Color, Master System, Game Gear and MSX emulator
pkgver = 2021.01.30
- pkgrel = 3
+ pkgrel = 4
url = https://emulicious.net
arch = any
license = custom,
license = BSD
makedepends = gendesk
makedepends = dos2unix
+ makedepends = imagemagick
depends = java-environment
+ depends = bash
+ depends = hicolor-icon-theme
source = emulicious-bin-2021.01.30.zip::https://emulicious.net/download/emulicious/?wpdmdl=205
source = emulicious.sh
sha256sums = fbe0ac99dae07c19123ecfacca6100a1dc97a9344133a3caa9ab75616892100f
diff --git a/PKGBUILD b/PKGBUILD
index 2cac0922a46..ae87bd987e8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,22 +6,27 @@ _name="emulicious"
_exec="emulicious"
_genericname="Emulator"
pkgver=2021.01.30
-pkgrel=3
+pkgrel=4
pkgdesc="Game Boy, Game Boy Color, Master System, Game Gear and MSX emulator"
-_mimetype="application/x-gameboy-rom;application/x-gameboy-color-rom;application/x-sms-rom;application/x-gamegear-rom;application/x-msx-rom"
+# sms is backwards compatible to sg1000
+_mimetype="application/x-gameboy-rom;application/x-gameboy-color-rom;application/x-sms-rom;application/x-sg1000-rom;application/x-gamegear-rom;application/x-msx-rom"
url="https://emulicious.net"
license=('custom', 'BSD')
arch=('any')
-depends=('java-environment')
-makedepends=('gendesk' 'dos2unix')
+depends=('java-environment' 'bash' 'hicolor-icon-theme')
+makedepends=('gendesk' 'dos2unix' 'imagemagick')
source=("$pkgname-$pkgver.zip::https://emulicious.net/download/emulicious/?wpdmdl=205" "emulicious.sh")
sha256sums=('fbe0ac99dae07c19123ecfacca6100a1dc97a9344133a3caa9ab75616892100f'
'3f9442376a7a8ba93ff5490826bcd5b5b81c5c62b3a6ec48bcd586a0e42fca66')
prepare() {
gendesk -f -n
+ cd "${srcdir}/"
# was zipped on windows
- dos2unix "${srcdir}/"*.txt
+ dos2unix ./*.txt
+ jar xf Emulicious.jar Emulicious.png
+ # resize to a quadratic shape
+ magick convert Emulicious.png -background transparent -resize 256x256 -gravity center -extent 256x256 "${pkgname}_256x256.png"
}
# emulicious does not communicate any version numbers
@@ -31,11 +36,17 @@ pkgver() {
}
package() {
- mkdir -p "${pkgdir}/usr/share/${pkgname}/"
+ install -d "${pkgdir}/usr/share/${pkgname}/"
install -Dm644 "${srcdir}/License.txt" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${srcdir}/LICENSE-JInput.txt" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE-JInput"
cp -r "${srcdir}/Highlighters/" "${srcdir}/MSX/" "${srcdir}/KeyPresets/" "${pkgdir}/usr/share/$pkgname/"
install -Dm644 "${srcdir}/Emulicious.jar" "${srcdir}/WhatsNew.txt" "${srcdir}/Expressions.txt" "${srcdir}/ReadMe.txt" "${srcdir}/"*.ports "${pkgdir}/usr/share/${pkgname}/"
install -Dm755 "${srcdir}/emulicious.sh" "${pkgdir}/usr/bin/${_name}"
install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${_name}.desktop"
+ install -Dm644 "${srcdir}/${pkgname}_256x256.png" "${pkgdir}/usr/share//icons/hicolor/256x256/apps/${pkgname}.png"
+ # generate all other icon sizes
+ for i in 16 24 32 48 64 72 96 128;do
+ install -d "${pkgdir}/usr/share//icons/hicolor/${i}x${i}/apps/"
+ magick convert "${srcdir}/${pkgname}_256x256.png" -resize ${i}x${i} "${pkgdir}/usr/share//icons/hicolor/${i}x${i}/apps/${pkgname}.png"
+ done
}