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

pkgname=yuntucad-uos
pkgver=0.0.2.1
pkgrel=1
pkgdesc="云图三维 A collaboative CAD software."
arch=('x86_64')
url="https://www.yuntucad.com/"
license=('custom')
depends=('alsa-lib' 'gtk3' 'nss')
source=(
	"https://home-store-packages.uniontech.com/appstore/pool/appstore/c/com.yuntucad.cloudcad/com.yuntucad.cloudcad_${pkgver}_amd64.deb"
)
sha512sums=('bc4158d4a25e484a1e4614f543de581aa8af5ecd19e56a6ef4961b5c6ba3c5ab3b1628a6fa9812222e4dfbb2823888b72e22424fc406e3bfa6ab0ed1cee5745c')

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

	echo "  -> Installing..."
	# Launcher
	install -Dm755 "${pkgdir}/opt/apps/com.yuntucad.cloudcad/files/yuntucad.sh" "${pkgdir}/usr/bin/${pkgname}"
	# Desktop Entry
	install -Dm644 "${pkgdir}/opt/apps/com.yuntucad.cloudcad/entries/applications/com.yuntucad.cloudcad.desktop" -t "${pkgdir}/usr/share/applications/"
	# License
	install -Dm644 "${pkgdir}/opt/apps/com.yuntucad.cloudcad/files/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
	install -Dm644 "${pkgdir}/opt/apps/com.yuntucad.cloudcad/files/LICENSES.chromium.html" -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}