-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
45 lines (41 loc) · 2.14 KB
/
PKGBUILD
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
41
42
43
44
45
# Former maintainer: Adrien Jussak <[email protected]>
# Maintainer: Prem Buczkowski <[email protected]>
# Contributor: Rein Fernhout <[email protected]>
pkgname=visual-paradigm
pkgver=17.1
pkgrel=20230323
pkgdesc="UML design application (Free 30-day trial)"
arch=('x86_64')
url='https://www.visual-paradigm.com/download/'
depends=('java-environment-common' 'java-runtime-common')
license=('custom')
install=visual-paradigm-community.install
conflicts=('visual-paradigm-community')
# Possible values: ca1 usa10 usa11 usa13 usa14 uk3 uk5 germany4 germany5 germany6 france3
_server=germany4
_ver=${pkgver/./_}
#https://www.visual-paradigm.com/downloads/germany6/vp/Visual_Paradigm_Linux64.sh
source=("https://www.visual-paradigm.com/downloads/${_server}/vp/Visual_Paradigm_Linux64_InstallFree.tar.gz"
'visual-paradigm-community.install'
'visual-paradigm.desktop'
'visual-paradigm.png'
'x-visual-paradigm.xml')
sha256sums=('8ea96ae601e8a0acb5986e0167432361251ef6998ef6f34ef7be866c0602ea3f'
'd49752a05bc69e7e5f7b23875b6ac7d7d242d761ee00030b57e9ca057babb43e'
'fff88b05529a391dad757b380d7acf08703e11d441e04c3886e4db7f5bcd1729'
'41517b5c2326c0ba2fe3b6647f9594f094ccf03185cf73cb87d6cf19b355ff15'
'a3b898bc9c43cf54baa1c643c619ee172a8103cd15031d574380ca463eb1ec1c')
package() {
mkdir -p "${pkgdir}/opt/${pkgname}"
mkdir -p "${pkgdir}/usr/share/applications/"
mkdir -p "${pkgdir}/usr/share/icons/hicolor/512x512/apps"
mkdir -p "${pkgdir}/usr/bin/"
cp -r "${srcdir}/Visual_Paradigm_${pkgver}/Application/" "${pkgdir}/opt/${pkgname}"
cp -r "${srcdir}/Visual_Paradigm_${pkgver}/.install4j/" "${pkgdir}/opt/${pkgname}"
cp "${srcdir}/Visual_Paradigm_${pkgver}/Visual_Paradigm" "${pkgdir}/opt/${pkgname}"
ln -sr "${pkgdir}/opt/${pkgname}/Visual_Paradigm" "${pkgdir}/usr/bin/${pkgname}"
cp "visual-paradigm.desktop" "${pkgdir}/usr/share/applications/visual-paradigm.desktop"
cp "visual-paradigm.png" "${pkgdir}/usr/share/icons/hicolor/512x512/apps/visual-paradigm.png"
mkdir -p ${pkgdir}/usr/share/mime/packages
cp "x-visual-paradigm.xml" "${pkgdir}/usr/share/mime/packages/x-visual-paradigm.xml"
}