summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 39a09248a38b6b581f852aecd2a67d61c08f6a81 (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
# Maintainer: Integral <integral@member.fsf.org>
# Maintainer: ston <2424284164@qq.com>

pkgname=rishiqing-uos
pkgver=3.3.1
pkgrel=3
pkgdesc="日事清 A teamwork management software."
arch=('x86_64')
url="https://www.rishiqing.com/"
license=('custom')
depends=('gtk3' 'nss' 'libxss' 'alsa-lib')
source=(
	"https://home-store-packages.uniontech.com/appstore/pool/appstore/c/com.rishiqing.uos/com.rishiqing.uos_${pkgver}_amd64.deb"
)
sha512sums=('0c5897b6e1f0d3de8ec6f054a3bfce1df866afa3405bd6bac9a827431f13f2146a02eff44d35c83ac1d7f12c5a90810b518b9a9860607cc8317615a04c9358f3')

package() {
	echo "  -> Extracting the data.tar.xz..."
	bsdtar -xvf data.tar.xz -C "${pkgdir}/"
	chmod -R 755 "${pkgdir}/opt/"
	echo "  -> Installing..."

	# Launcher
	mkdir -p ${pkgdir}/usr/bin/
	ln -s /opt/apps/com.rishiqing.uos/files/rishiqing ${pkgdir}/usr/bin/${pkgname}
	# Desktop Entry
	install -Dm644 "${pkgdir}/opt/apps/com.rishiqing.uos/entries/applications/com.rishiqing.uos.desktop" -t "${pkgdir}/usr/share/applications/"
	# Icons
	cp -r "${pkgdir}/opt/apps/com.rishiqing.uos/entries/icons/" "${pkgdir}/usr/share/"
	chmod -R 755 "${pkgdir}/usr/share/icons"
	# License
	install -Dm644 "${pkgdir}/opt/apps/com.rishiqing.uos/files/LICENSE.electron.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
	install -Dm644 "${pkgdir}/opt/apps/com.rishiqing.uos/files/LICENSES.chromium.html" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}