diff options
author | zxp19821005 | 2024-04-02 18:55:56 +0800 |
---|---|---|
committer | zxp19821005 | 2024-04-02 18:55:56 +0800 |
commit | d06432422102a6ff5ffb009b1f36c90ed56d1a21 (patch) | |
tree | 878d97361ed334ac96f0e942d4b14fad991d584d /PKGBUILD | |
download | aur-chatspot-bin.tar.gz |
update to 0.0.4
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9bacfc878b7e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> +_appname=chat-spot +pkgname="${_appname//-/}-bin" +_pkgname=ChatSpot +pkgver=0.0.4 +_electronversion=26 +pkgrel=1 +pkgdesc="An AI-powered, Spotlight assistant designed to help users complete tasks quickly and efficiently. " +arch=('x86_64') +url="https://github.com/gusye1234/chat-spot" +license=('MIT') +provides=("${pkgname%-bin}=${pkgver}") +conflicts=("${pkgname%-bin}") +depends=( + "electron${_electronversion}-bin" +) +makedepends=( + 'fuse2' +) +source=( + "${pkgname%-bin}-${pkgver}.AppImage::${url}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.AppImage" + "LICENSE-${pkgver}::https://raw.githubusercontent.com/gusye1234/chat-spot/v${pkgver}/LICENSE" + "${pkgname%-bin}.sh" +) +sha256sums=('d19d394cc7bd4cb6b7d4c07165ba549287724c290868dcc5cc871e33e8ccd271' + '5e98c15fe806a18f79422d2cd0c4587129f4e03081b5ab4c030627d6f6840d68' + 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') +build() { + sed -e "s|@electronversion@|${_electronversion}|g" \ + -e "s|@appname@|${pkgname%-bin}|g" \ + -e "s|@runname@|app.asar|g" \ + -e "s|@options@||g" \ + -i "${srcdir}/${pkgname%-bin}.sh" + chmod a+x "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" + "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" --appimage-extract > /dev/null + sed "s|AppRun --no-sandbox|${pkgname%-bin}|g;s|${_appname}|${pkgname%-bin}|g" -i "${srcdir}/squashfs-root/${_appname}.desktop" + find "${srcdir}/squashfs-root/resources" -type d -exec chmod 755 {} \; +} +package() { + install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" + install -Dm644 "${srcdir}/squashfs-root/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm644 "${srcdir}/squashfs-root/usr/lib/"* -t "${pkgdir}/usr/lib/${pkgname%-bin}/lib" + cp -r "${srcdir}/squashfs-root/resources/"{app.asar.unpacked,assets} "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/${_appname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png" + install -Dm644 "${srcdir}/squashfs-root/${_appname}.desktop" -t "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop" + install -Dm644 "${srcdir}/LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}
\ No newline at end of file |