diff options
author | Patrykf03 | 2020-10-23 01:19:23 +0100 |
---|---|---|
committer | Patrykf03 | 2020-10-23 01:19:23 +0100 |
commit | c38822e4ecad72f5755df98bce95b8db9e2b06a6 (patch) | |
tree | bddf775f49601f9e631962ac97c78b8ccc71347c | |
download | aur-c38822e4ecad72f5755df98bce95b8db9e2b06a6.tar.gz |
add PKGBUILD and srcinfo for the first time
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 48 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0aa8e890c0ce --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = yuzu-ea-bin + pkgdesc = Yuzu switch emulator Early Access build for Arch Linux + pkgver = 1058 + pkgrel = 1 + url = https://github.com/pineappleEA/pineappleEA.github.io + arch = x86_64 + license = gpl + depends = zlib + depends = hicolor-icon-theme + noextract = Yuzu-Ea-1058.AppImage + options = !strip + source_x86_64 = https://github.com/pineappleEA/pineappleEA.github.io/releases/download/EA-1058/Yuzu-Ea-1058.AppImage + sha256sums_x86_64 = 166bcde424ac7e00d04df39a419b9ee93401e5e6dd048c007382130d26cd1941 + +pkgname = yuzu-ea-bin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bcf67d1af769 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Patrykf03 <hamachi0912@gmail.com> + +_pkgname=yuzu-ea-bin + +pkgname=yuzu-ea-bin +pkgver=1058 +pkgrel=1 +pkgdesc="Yuzu switch emulator Early Access build for Arch Linux" +arch=('x86_64') +url="https://github.com/pineappleEA/pineappleEA.github.io" +license=('gpl') +depends=('zlib' 'hicolor-icon-theme') +options=(!strip) +_appimage="Yuzu-Ea-${pkgver}.AppImage" +source_x86_64=("https://github.com/pineappleEA/pineappleEA.github.io/releases/download/EA-${pkgver}/${_appimage}") +noextract=("${_appimage}") +sha256sums_x86_64=('166bcde424ac7e00d04df39a419b9ee93401e5e6dd048c007382130d26cd1941') + +prepare() { + chmod +x "${_appimage}" + ./"${_appimage}" --appimage-extract +} + + +build() { + # Adjust .desktop so it will work outside of AppImage container + sed -i -E "s|Exec=AppRun|Exec=env DESKTOPINTEGRATION=false /usr/bin/${_pkgname}|"\ + "squashfs-root/yuzu.desktop" + # Fix permissions; .AppImage permissions are 700 for all directories + chmod -R a-x+rX squashfs-root/usr +} + +package() { + # AppImage + install -Dm755 "${srcdir}/${_appimage}" "${pkgdir}/opt/${pkgname}/${_appimage}" + + # Desktop file + install -Dm644 "${srcdir}/squashfs-root/yuzu.desktop"\ + "${pkgdir}/usr/share/applications/yuzu.desktop" + + # Icon images + install -dm755 "${pkgdir}/usr/share/" + cp -a "${srcdir}/squashfs-root/usr/share/icons" "${pkgdir}/usr/share/" + + # Symlink executable + install -dm755 "${pkgdir}/usr/bin" + ln -s "/opt/${pkgname}/${_appimage}" "${pkgdir}/usr/bin/yuzu" +} |