summaryrefslogtreecommitdiff
path: root/community/qcad
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-31 01:57:14 -0700
committerroot <root@rshg054.dnsready.net>2013-05-31 01:57:14 -0700
commit94a3b302f520438e919ef8706ce9cf42ad7c2e11 (patch)
tree7fa5b120c4fb8ccd67c09d5096bd7e1dc7d35b1c /community/qcad
parent76ee9007095484a113d1856786b81e2d2fae8202 (diff)
Fri May 31 01:56:04 PDT 2013
Diffstat (limited to 'community/qcad')
-rw-r--r--community/qcad/PKGBUILD15
1 files changed, 7 insertions, 8 deletions
diff --git a/community/qcad/PKGBUILD b/community/qcad/PKGBUILD
index 5783146ec..1ded6d451 100644
--- a/community/qcad/PKGBUILD
+++ b/community/qcad/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 91930 2013-05-29 16:59:39Z spupykin $
+# $Id: PKGBUILD 91963 2013-05-30 10:15:36Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Giovanni Scafora <linuxmania@gmail.com>
@@ -14,28 +14,27 @@ license=('GPL2')
depends=('qtwebkit')
makedepends=('glu')
options=(libtool)
-#source=(https://github.com/qcad/qcad/archive/v${pkgver}.zip
-source=(http://cl.ly/1u1Y3H290M1S/download/qcad-v${pkgver}.zip
+source=($pkgname-$pkgver.zip::https://github.com/qcad/qcad/archive/v${pkgver}.zip
QCad.desktop)
-md5sums=('6f52fe016e915850ba942fa760909d4c'
+md5sums=('2c460838235a95a4d969e508a75b8206'
'8c4288986b78b14a813b005e81b6ba53')
prepare() {
- cd ${srcdir}
+ cd ${srcdir}/qcad-$pkgver
sed -i '1,1i#include <unistd.h>' src/core/{RLocalPeer,RS}.cpp
sed -i '1,1i#include <sys/sysinfo.h>' src/core/{RScriptHandler,RS}.cpp
}
build() {
- cd ${srcdir}
+ cd ${srcdir}/qcad-$pkgver
qmake-qt4
make PREFIX=/usr CXX="g++ -fpermissive"
}
package() {
- cd ${srcdir}
+ cd ${srcdir}/qcad-$pkgver
# remove project files
find . \( -name '*.pri' -or -name '.pro' -or -name '*.ts' \) -delete
@@ -61,7 +60,7 @@ package() {
done
install -Dm644 scripts/qcad_icon.png ${pkgdir}/usr/share/pixmaps/qcad_icon.png
- install -Dm644 QCad.desktop ${pkgdir}/usr/share/applications/QCad.desktop
+ install -Dm644 $srcdir/QCad.desktop ${pkgdir}/usr/share/applications/QCad.desktop
install -dm0755 $pkgdir/usr/bin
echo -e '#!/bin/sh\ncd /usr/share/qcad\nexec ./qcad' >$pkgdir/usr/bin/qcad