diff options
author | KenwoodFox | 2021-07-26 12:11:30 -0400 |
---|---|---|
committer | KenwoodFox | 2021-07-26 12:11:30 -0400 |
commit | 80765b0b7957562f1de01b0d44975f917c1477b7 (patch) | |
tree | 6b2c5c54cc3f30c509f1b203d729c547287d0732 | |
download | aur-80765b0b7957562f1de01b0d44975f917c1477b7.tar.gz |
Inital commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 60 |
2 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7ca60dc8d867 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = fchat-rising-appimage + pkgdesc = A heavily customized version of the mainline F-Chat 3.0 client. + pkgver = 1.13.0 + pkgrel = 1 + url = https://github.com/mrstallion/fchat-rising/ + arch = x86_64 + license = MIT + provides = fchat + conflicts = fchat + noextract = fchat-rising-appimage-1.13.0.AppImage + options = !strip + source_x86_64 = fchat-rising-appimage-1.13.0.AppImage::https://github.com/mrstallion/fchat-rising/releases/download/v1.13.0/F-Chat-Rising-1.13.0-linux.AppImage + source_x86_64 = https://raw.githubusercontent.com/mrstallion/fchat-rising/v1.13.0/LICENSE + sha256sums_x86_64 = 9964b9ac27a261188abf0237a6fb9aefd8b3b1ebbebf82a34e4b9f23af8e2d8e + sha256sums_x86_64 = SKIP + +pkgname = fchat-rising-appimage diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1571fde48ed9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,60 @@ +# Maintainer: Joe <kenwood364@gmail.com> +# Adapted from https://daveparrish.net/posts/2019-11-16-Better-AppImage-PKGBUILD-template.html + + +_pkgname=fchat + +pkgname="${_pkgname}"-rising-appimage +pkgver=1.13.0 +pkgrel=1 +pkgdesc="A heavily customized version of the mainline F-Chat 3.0 client." +arch=('x86_64') +url="https://github.com/mrstallion/fchat-rising/" +license=('MIT') +provides=(fchat) +conflicts=(fchat) +options=(!strip) +_appimage="${pkgname}-${pkgver}.AppImage" +source_x86_64=("${_appimage}::https://github.com/mrstallion/fchat-rising/releases/download/v${pkgver}/F-Chat-Rising-${pkgver}-linux.AppImage" + "https://raw.githubusercontent.com/mrstallion/fchat-rising/v${pkgver}/LICENSE" + ) +noextract=("${_appimage}") +sha256sums_x86_64=('9964b9ac27a261188abf0237a6fb9aefd8b3b1ebbebf82a34e4b9f23af8e2d8e' + 'SKIP') + +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/${_pkgname}.desktop" # Adjust bin location + sed -i -E "s|Icon=icon|Icon=/usr/share/${_pkgname}.png|"\ + "squashfs-root/${_pkgname}.desktop" # Adjust desktop icon + # 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}/${pkgname}.AppImage" + install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/opt/${pkgname}/LICENSE" + + # Desktop file + install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop"\ + "${pkgdir}/usr/share/applications/${_pkgname}.desktop" + + # Icon image + install -dm755 "${pkgdir}/usr/share/" + cp -a "${srcdir}/squashfs-root/icon.png" "${pkgdir}/usr/share/${_pkgname}.png" + + # Symlink executable + install -dm755 "${pkgdir}/usr/bin" + ln -s "/opt/${pkgname}/${pkgname}.AppImage" "${pkgdir}/usr/bin/${_pkgname}" + + # Symlink license + install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}/" + ln -s "/opt/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" +}
\ No newline at end of file |