summaryrefslogtreecommitdiff
path: root/community/qcad/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/qcad/PKGBUILD')
-rw-r--r--community/qcad/PKGBUILD11
1 files changed, 6 insertions, 5 deletions
diff --git a/community/qcad/PKGBUILD b/community/qcad/PKGBUILD
index c22bd0225..916069472 100644
--- a/community/qcad/PKGBUILD
+++ b/community/qcad/PKGBUILD
@@ -1,12 +1,12 @@
-# $Id: PKGBUILD 96151 2013-08-20 11:37:41Z spupykin $
+# $Id: PKGBUILD 97523 2013-09-23 16:15:04Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Giovanni Scafora <linuxmania@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
pkgname=qcad
-pkgver=3.2.0.0
-pkgrel=2
+pkgver=3.3.1.0
+pkgrel=1
pkgdesc="A 2D CAD package based upon Qt"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.ribbonsoft.com/qcad.html"
@@ -16,7 +16,7 @@ makedepends=('glu')
options=(libtool)
source=($pkgname-$pkgver.tar.gz::https://github.com/qcad/qcad/archive/v${pkgver}.tar.gz
QCad.desktop)
-md5sums=('6dd9c47742a0193a739d390e81ca67d0'
+md5sums=('e6e469482b40515980c416e61482abc2'
'35100eaedbdf6625f6e6a09b177854cd')
prepare() {
@@ -64,6 +64,7 @@ package() {
install -Dm644 $srcdir/QCad.desktop ${pkgdir}/usr/share/applications/QCad.desktop
install -dm0755 $pkgdir/usr/bin
- echo -e '#!/bin/sh\ncd /usr/share/qcad\nLD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH exec ./qcad-bin' >$pkgdir/usr/bin/qcad
+ echo -e '#!/bin/sh\ncd /usr/share/qcad\nLD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"/usr/share/qcad" exec /usr/share/qcad/qcad-bin "$@"' >$pkgdir/usr/bin/qcad
+
chmod 0755 $pkgdir/usr/bin/qcad
}