summaryrefslogtreecommitdiff
path: root/community/qcad
diff options
context:
space:
mode:
Diffstat (limited to 'community/qcad')
-rw-r--r--community/qcad/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/community/qcad/PKGBUILD b/community/qcad/PKGBUILD
index cf17e1398..b6919a163 100644
--- a/community/qcad/PKGBUILD
+++ b/community/qcad/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 96852 2013-09-06 18:23:57Z 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.2.2
+pkgver=3.3.1.0
pkgrel=1
pkgdesc="A 2D CAD package based upon Qt"
arch=('i686' 'x86_64')
@@ -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=('49c05861b309c48f04ed7910b496e48c'
+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
}