blob: a3a4a97c75e4a94a89275a24c93d3adf3a537163 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=animos-appimage
pkgver=0.5.8
_electronversion=22
pkgrel=6
pkgdesc="Clean and minimal Anime-streaming desktop application without any ads."
arch=("x86_64")
url="https://animos.cf/"
_ghurl="https://github.com/keerthivasansa/animos"
license=('LicenseRef-custom')
provides=("${pkgname%-appimage}=${pkgver}")
conflicts=("${pkgname%-appimage}")
depends=(
'hicolor-icon-theme'
)
makedepends=(
'fuse2'
)
options=(!strip)
_install_path="/opt/appimages"
source=(
"${pkgname%-appimage}-${pkgver}.AppImage::${_ghurl}/releases/download/v${pkgver}/Animos-${pkgver}.AppImage"
)
sha256sums=('91c6ff65c927a1e8d5955789eb716ee52882baabc5ee8f69d99c2c702eadff0e')
build() {
chmod a+x "${srcdir}/${pkgname%-appimage}-${pkgver}.AppImage"
"${srcdir}/${pkgname%-appimage}-${pkgver}.AppImage" --appimage-extract > /dev/null
sed "s|AppRun|${pkgname%-appimage}|g" -i "${srcdir}/squashfs-root/${pkgname%-appimage}.desktop"
}
package() {
install -Dm755 "${srcdir}/${pkgname%-appimage}-${pkgver}.AppImage" "${pkgdir}/${_install_path}/${pkgname%-appimage}.AppImage"
install -Dm755 -d "${pkgdir}/usr/bin"
ln -sf "${_install_path}/${pkgname%-appimage}.AppImage" "${pkgdir}/usr/bin/${pkgname%-appimage}"
install -Dm644 "${srcdir}/squashfs-root/${pkgname%-appimage}.desktop" -t "${pkgdir}/usr/share/applications"
for _icons in 16x16 32x32 48x48 64x64 128x128 256x256 512x512 1024x1024;do
install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-appimage}.png" \
-t "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps"
done
install -Dm644 "${srcdir}/squashfs-root/LICENSE"* -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|