blob: c68768db47d50a517a63b9e6b6ba91c4620f9d1c (
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
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: rafaelff <rafaelff@gnome.org>
# NOTE about libgl dependency (same note applies to its 'lib32-' version)
# if you have and use 'mesa', install 'mesa-libgl'
# if you have and use 'nvidia', install 'nvidia-libgl'
# if you have and use 'catalyst', install 'catalyst-libgl' (or catalyst-total)
# p.s.: there is no 'libgl' pkg, instead it is provided by the above pkgs
pkgname=teighaviewer-qt4
_altname=teighaviewer
pkgver=4.00.1.0
pkgrel=1
pkgdesc="Application for the visualization of CAD drawing files, QT4 version"
arch=('i686' 'x86_64')
url="https://www.opendesign.com/guestfiles"
license=('custom')
DLAGENTS=("https::/usr/bin/curl -k -o %o %u")
conflicts=('teighaviewer' 'teighaviewer-qt5')
provides=('teighaviewer')
depends=('bash' 'gtk-update-icon-cache' 'update-desktop-database')
depends_i686=('qt4' 'libgl')
depends_x86_64=('lib32-qt4' 'lib32-libgl')
source=(https://www.opendesign.com/files/guestdownloads/TeighaViewer/TeighaViewer_QT4_lnxX86_4.4dll.deb
'license')
md5sums=('cca742852192bf55d046469e9bd703d3'
'62b5539acd57c50855e29d1157c10697')
build() {
rm -rf ${_altname}-${pkgver}
mkdir ${_altname}-${pkgver}
tar xf data.tar.gz -C ${_altname}-${pkgver}
}
package() {
cd ${_altname}-${pkgver}
# persistent application storage (libs, executables, etc.)
if [[ $CARCH == i686 ]]; then
appstoragedir=usr/lib/teighaviewer
elif [[ $CARCH == x86_64 ]]; then
appstoragedir=usr/lib32/teighaviewer
fi
for file in $(ls usr/bin/TeighaViewer_${pkgver}/); do
install -Dm755 usr/bin/TeighaViewer_${pkgver}/${file} \
"${pkgdir}/${appstoragedir}/${file}"
done
# binary
install -Dm755 usr/bin/TeighaViewer \
"${pkgdir}/usr/bin/teighaviewer"
sed -e "s#usr/bin/TeighaViewer_${pkgver}#${appstoragedir}#" \
-i "${pkgdir}/usr/bin/${_altname}"
# desktop item
install -Dm644 usr/share/applications/TeighaViewer_${pkgver}.desktop \
"${pkgdir}/usr/share/applications/teighaviewer.desktop"
sed -e "s#/TeighaViewer#/teighaviewer#" \
-i "${pkgdir}/usr/share/applications/teighaviewer.desktop"
# hicolor icons
for icon in $(find usr/share/icons -type f); do
install -Dm644 ${icon} \
"${pkgdir}/${icon}"
done
# copyright
install -Dm644 usr/share/doc/TeighaViewer/copyright \
"${pkgdir}/usr/share/licenses/${_altname}/COPYRIGHT"
install -Dm644 "$srcdir"/license \
"${pkgdir}/usr/share/licenses/${_altname}/license"
}
|