summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Lönnqvist2021-01-23 23:07:39 +0200
committerBen Lönnqvist2021-01-23 23:07:39 +0200
commita5492c363f4f6304f609f1f0fd9268d5c4f325ec (patch)
treecca0b0b3d37771eaaf47603f8f41d77947ecaa6c
parenta0cd235ef63c9e93f21e22166de542534f378e41 (diff)
downloadaur-a5492c363f4f6304f609f1f0fd9268d5c4f325ec.tar.gz
initial PKGBUILD
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD39
2 files changed, 35 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b4d982992a8..dffbaf33a8e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,12 @@
pkgbase = yam
- pkgdesc = The simplest AUR helper
- pkgver = 1.0
+ pkgdesc = Game manager for F95zone
+ pkgver = 2.5.6
pkgrel = 1
- url = https://github.com/cheertarts/yam
- arch = any
+ url = https://github.com/MillenniumEarl/YAM
+ arch = x86_64
license = MIT
- depends = git
- depends = jshon
- depends = grep
- depends = bash
- depends = coreutils
- source = git+https://github.com/cheertarts/yam.git
- md5sums = SKIP
+ source = https://github.com/MillenniumEarl/YAM/releases/download/v2.5.6/YAM-2.5.6.AppImage
+ sha256sums = 1ab1e01246720ff62fca7149e9bb919c011a0ae496cbaebaf09d8c5d3e9798c1
pkgname = yam
diff --git a/PKGBUILD b/PKGBUILD
index bda811fa000..4b85625bee9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,35 @@
-# Maintainer: Caleb Butler <cheertarts@github.com>
+# Maintainer: silentnoodle <lonnqvistben at gmail dot com>
pkgname=yam
-pkgver=1.0
+pkgver=2.5.6
pkgrel=1
-pkgdesc="The simplest AUR helper"
-arch=('any')
-url="https://github.com/cheertarts/yam"
+pkgdesc="Game manager for F95zone"
+arch=('x86_64')
+url="https://github.com/MillenniumEarl/YAM"
license=('MIT')
-depends=('git' 'jshon' 'grep' 'bash' 'coreutils')
-source=('git+https://github.com/cheertarts/yam.git')
-md5sums=('SKIP')
+source=("https://github.com/MillenniumEarl/YAM/releases/download/v${pkgver}/YAM-${pkgver}.AppImage")
+sha256sums=('1ab1e01246720ff62fca7149e9bb919c011a0ae496cbaebaf09d8c5d3e9798c1')
+
+prepare() {
+ chmod +x "YAM-${pkgver}.AppImage"
+ "./YAM-${pkgver}.AppImage" --appimage-extract &>/dev/null
+}
package() {
- install -Dm755 "$srcdir"/$pkgname/yam "$pkgdir"/usr/bin/yam
- install -Dm644 "$srcdir"/$pkgname/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ # directories
+ install -d "$pkgdir"/usr/bin/
+ install -d "$pkgdir"/usr/lib/yam/
+ install -d "$pkgdir"/usr/share/applications/
+ install -d "$pkgdir"/usr/share/icons/
+
+ # icon
+ install -m644 squashfs-root/yam.png "$pkgdir"/usr/share/icons/
+
+ # .desktop file
+ sed -i 's/Exec=AppRun/Exec=yam/' squashfs-root/yam.desktop
+ install -m644 squashfs-root/yam.desktop "$pkgdir"/usr/share/applications
+
+ # application
+ chmod 755 -R squashfs-root
+ mv squashfs-root/* "$pkgdir"/usr/lib/yam/
+ ln -s /usr/lib/yam/yam "$pkgdir"/usr/bin/yam
}