diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rwxr-xr-x | PKGBUILD | 71 | ||||
-rw-r--r-- | license | 10 | ||||
-rwxr-xr-x | teighaviewer-qt4.install | 16 |
4 files changed, 122 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4ae696a1c3bd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = teighaviewer-qt4 + pkgdesc = Application for the visualization of CAD drawing files, QT4 version + pkgver = 4.00.1.0 + pkgrel = 1 + url = http://www.opendesign.com/guestfiles + install = teighaviewer-qt4.install + arch = i686 + arch = x86_64 + license = custom + depends = bash + depends = hicolor-icon-theme + provides = teighaviewer + conflicts = teighaviewer + conflicts = teighaviewer-qt5 + source = http://www.opendesign.com/files/guestdownloads/TeighaViewer/TeighaViewer_QT4_lnxX86_4.4dll.deb + source = license + md5sums = f98e24dcea0ab88637c3d70132c61200 + md5sums = 62b5539acd57c50855e29d1157c10697 + depends_i686 = qt4 + depends_i686 = libgl + depends_x86_64 = lib32-qt4 + depends_x86_64 = lib32-libgl + +pkgname = teighaviewer-qt4 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..799a88896e93 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,71 @@ +# Maintainer: josephgbr <rafael.f.f1@gmail.com> + +# 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="http://www.opendesign.com/guestfiles" +license=('custom') +conflicts=('teighaviewer' 'teighaviewer-qt5') +provides=('teighaviewer') +depends=('bash' 'hicolor-icon-theme') +depends_i686=('qt4' 'libgl') +depends_x86_64=('lib32-qt4' 'lib32-libgl') +install=${pkgname}.install +source=(http://www.opendesign.com/files/guestdownloads/TeighaViewer/TeighaViewer_QT4_lnxX86_4.4dll.deb + 'license') +md5sums=('f98e24dcea0ab88637c3d70132c61200' + '62b5539acd57c50855e29d1157c10697') + +build() { + [ ! -d ${_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" + +} diff --git a/license b/license new file mode 100644 index 000000000000..b61a0c618ff5 --- /dev/null +++ b/license @@ -0,0 +1,10 @@ +COPYRIGHT AND TRADEMARK DISCLOSURE + +© 2011 Open Design Alliance. All rights reserved. + +"TEIGHA", the TEIGHA logo, "Open Design Alliance", and the Open Design Alliance logo are trademarks of the Open Design Alliance in the United States and/or other countries. +All other trademarks, trade names or company names referenced herein are used for identification purposes only and are the property of their respective owners. + +DWG is the native and proprietary file format for AutoCAD® and a trademark of Autodesk, Inc. The Open Design Alliance is not associated with Autodesk. + + diff --git a/teighaviewer-qt4.install b/teighaviewer-qt4.install new file mode 100755 index 000000000000..1c505c876837 --- /dev/null +++ b/teighaviewer-qt4.install @@ -0,0 +1,16 @@ +## arg 1: the new package version +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + post_install +} + +## arg 1: the old package version +post_remove() { + post_install +} + |