blob: 1638a97edf6a0c476cc73153cd34e4198c8f73c2 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Petr Manek <pm+aur at petrmanek dot cz>
pkgname=varicad-view
_pkgver_year=2025
_pkgver_majmin=1.02
_pkgver_rel=1
pkgver=${_pkgver_year}.${_pkgver_majmin}
pkgrel=1
pkgdesc="Free viewer, convertor & printing software working with 2D DWG, DXF, 3D STEP formats."
arch=('x86_64')
license=(custom)
makedepends=()
depends=(libx11 libxcomposite libxdamage libxext libxfixes libxrender mime-types gtk2 hicolor-icon-theme)
provides=(varicad-view)
source=("https://www.varicad.com/userdata/files/release/en/VariCAD_View-${_pkgver_year}.${_pkgver_majmin}_en-${_pkgver_rel}.$CARCH.rpm")
url="https://www.varicad.com/"
sha256sums=('c82f49168c35d6f0686fb0f3390a2473df1945e698f787669fd74723a601f773')
package() {
# Contents of this function are inspired by the install script located at:
# $srcdir/opt/VariCAD-View/desktop/installdesktop.sh
addon=view
# executable
mkdir -p $pkgdir/opt/VariCAD-View $pkgdir/usr/bin
cp -r $srcdir/opt/VariCAD-View/{bin,lib} $pkgdir/opt/VariCAD-View/
cd $pkgdir/usr/bin && ln -s ../../opt/VariCAD-View/bin/varicad-view
# icons
install -Dm644 \
$srcdir/opt/VariCAD-View/desktop/varicad"$addon".xpm \
$pkgdir/usr/share/pixmaps/varicad"$addon".xpm
for icon_resolution in hicolor locolor ; do
for icon_size in 512 256 192 128 96 72 64 48 42 36 32 24 22 16 ; do
icon_dim="$icon_size"x"$icon_size"
icon_dir=$icon_resolution/$icon_dim
install -Dm644 \
$srcdir/opt/VariCAD-View/desktop/varicad"$addon"_"$icon_dim".png \
$pkgdir/usr/share/icons/$icon_dir/apps/varicad"$addon".png
done
done
# desktop files
install -Dm644 \
$srcdir/opt/VariCAD-View/desktop/varicad"$addon".desktop \
$pkgdir/usr/share/applications/varicad"$addon".desktop
install -Dm644 \
$srcdir/opt/VariCAD-View/desktop/x-varicad"$addon".desktop \
$pkgdir/usr/share/mimelnk/application/x-varicad"$addon".desktop
# documentation
for install_file in $(ls $srcdir/usr/share/doc/packages/VariCAD_View) ;
do
install -Dm644 \
$srcdir/usr/share/doc/packages/VariCAD_View/$install_file \
$pkgdir/usr/share/doc/$pkgname/$install_file
done
}
|