46 lines
1.1 KiB
Bash
46 lines
1.1 KiB
Bash
# Maintainer: Zergling_man, from fedora.email
|
|
|
|
pkgname=thedesk
|
|
_pkgname=TheDesk
|
|
pkgver=24.2.1
|
|
_electronversion=22
|
|
pkgrel=2
|
|
pkgdesc="Mastodon Client for PC, Zergling_man's pleroma-focused fork."
|
|
arch=("x86_64")
|
|
url="https://thedesk.top/"
|
|
license=('GPL3')
|
|
conflicts=("${pkgname%-bin}")
|
|
depends=("npm")
|
|
makedepends=("npm")
|
|
optdeps=('hicolor-icon-theme')
|
|
|
|
source=("git+http://precious.harpy.faith/Zergling_man/TheDesk.git")
|
|
sha256sums=('SKIP')
|
|
|
|
build()
|
|
{
|
|
cd ${srcdir}/${_pkgname}/app
|
|
npm run build
|
|
npm run construct
|
|
}
|
|
|
|
package()
|
|
{
|
|
cd ${pkgdir}
|
|
install -d opt/${_pkgname}/ usr/share/icons/hicolor usr/share/applications/ usr/share/licenses/thedesk/ usr/bin/
|
|
cd ${srcdir}/${_pkgname}
|
|
mv thedesk ${pkgdir}/usr/bin/
|
|
chmod 555 ${pkgdir}/usr/bin/thedesk
|
|
mv thedesk.desktop ${pkgdir}/usr/share/applications/
|
|
mv LICENSE ${pkgdir}/usr/share/licenses/thedesk/
|
|
cd app/img/icons/
|
|
sizes=($(ls | grep -Eo '[0-9x]+'))
|
|
for size in ${sizes[@]}; do
|
|
install -d ${pkgdir}/usr/share/icons/hicolor/$size/apps/
|
|
mv icon-$size.png ${pkgdir}/usr/share/icons/hicolor/$size/apps/desk.png
|
|
done
|
|
cd ..
|
|
rm -d icons
|
|
cd ${srcdir}
|
|
cp -r ${_pkgname} ${pkgdir}/opt/
|
|
} |