feishin-bin/PKGBUILD

40 lines
1.7 KiB
Bash
Raw Normal View History

2023-05-10 20:23:10 +02:00
# Maintainer: RealStickman <mrc+aur@frm01.net>
pkgname=feishin-bin
pkgdesc='Rewrite of Sonixd'
2023-12-14 19:27:36 +01:00
pkgver=0.5.3
2023-11-18 17:35:31 +01:00
pkgrel=1
2023-12-14 19:27:36 +01:00
arch=('x86_64' 'aarch64')
2023-05-10 20:23:10 +02:00
url='https://github.com/jeffvli/feishin'
license=('GPL3')
depends=('mpv') # TODO check node requirements
provides=("${pkgname%-bin}")
conflicts=("${pkgname%-bin}")
2023-12-14 19:27:36 +01:00
_filename=Feishin-${pkgver//_/-}-linux
source=("feishin.desktop")
source_x86_64=("https://github.com/jeffvli/feishin/releases/download/v${pkgver//_/-}/${_filename}-x64.tar.xz")
source_aarch64=("https://github.com/jeffvli/feishin/releases/download/v${pkgver//_/-}/${_filename}-arm64.tar.xz")
sha256sums=('ef112b1a9ef80d8bf27f721fdbb12de0a195da4e464dbf27282503ba398bef8d')
sha256sums_x86_64=('9f5e59ff1ea9d45cad33d113da81fd6212817e79a9432f164755549dbac10318')
sha256sums_aarch64=('8a97ddd3805ea2eb6525dc8e83b46efa4539e9e2d4f31fc3109590927ed9795b')
2023-05-10 20:23:10 +02:00
package() {
# create target file structure
mkdir -p "$pkgdir/usr/bin"
mkdir -p "$pkgdir/usr/share/"{feishin,pixmaps,applications}
2023-12-14 19:27:36 +01:00
# HACK rename package correctly
if [ $CARCH == "x86_64" ]; then
mv ${_filename}-x64.tar.xz ${_filename}-x86_64.tar.xz
elif [ $CARCH == "aarch64" ]; then
mv ${_filename}-arm64.tar.xz ${_filename}-aarch64.tar.xz
fi
2023-05-10 20:23:10 +02:00
# extract files to target
2023-12-14 19:27:36 +01:00
tar -xf ${_filename}-$CARCH.tar.xz -C "$pkgdir/usr/share/feishin" --strip-components=1
2023-05-10 20:23:10 +02:00
# install icon
2023-09-26 17:44:32 +02:00
install -Dm644 "$pkgdir/usr/share/feishin/resources/assets/icons/icon.png" "$pkgdir/usr/share/pixmaps/${pkgname%-bin}.png"
2023-05-10 20:23:10 +02:00
# symlink executable to "/usr/bin/feishin"
ln -s /usr/share/feishin/feishin "${pkgdir}/usr/bin/feishin"
# install desktop entry
install -Dm644 feishin.desktop "$pkgdir/usr/share/applications/"
}