mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
36 lines
1.4 KiB
Bash
36 lines
1.4 KiB
Bash
|
# Maintainer:Stefan Husmann <stefan-husmann@t-online.de>
|
||
|
# Contributor: Giovanni Scafora <linuxmania@gmail.com>
|
||
|
|
||
|
pkgname=qcad
|
||
|
pkgver=2.0.5.0
|
||
|
pkgrel=5
|
||
|
pkgdesc="A 2D CAD package based upon Qt"
|
||
|
arch=('i686' 'x86_64')
|
||
|
url="http://www.ribbonsoft.com/qcad.html"
|
||
|
license=('GPL2')
|
||
|
depends=('qt3')
|
||
|
source=(http://www.ribbonsoft.com/archives/$pkgname/$pkgname-$pkgver-1-community.src.tar.gz qcad.xpm QCad.desktop qcad-intptr.patch qcad.patch)
|
||
|
md5sums=('96b6a56027782aec953c9c4e64c5998c' 'da32fec0d2fb85d96126bf28bb0ab9ff'\
|
||
|
'b4d1eb6724b4b41f191f1ab6fd859c39' '92f900fe1fd3a8f841232b587b49c7da'\
|
||
|
'7e6779b1e3b10da1eb4daf36d93f8479')
|
||
|
options=('libtool')
|
||
|
|
||
|
build () {
|
||
|
export PATH="/opt/qt/bin:$PATH"
|
||
|
export QTDIR=/opt/qt
|
||
|
cd $srcdir/$pkgname-2.0.5.0-1-community.src
|
||
|
#Arch64 fix - gentoo patch
|
||
|
[ "$CARCH" = "x86_64" ] && patch -p1 < ../qcad-intptr.patch
|
||
|
patch -p1 < ../qcad.patch || return 1
|
||
|
sed -i "s:"-pedantic"::g" mkspecs/defs.pro || return 1
|
||
|
cd scripts
|
||
|
./build_qcad.sh notrans || return 1
|
||
|
cd ../qcad
|
||
|
install -D -m755 qcad $pkgdir/usr/bin/qcad || return 1
|
||
|
install -d $pkgdir/usr/share/{qcad,pixmaps,applications} || return 1
|
||
|
install -m644 ../../qcad.xpm $pkgdir/usr/share/pixmaps/qcad.xpm || return 1
|
||
|
install -m644 ../../QCad.desktop \
|
||
|
$pkgdir/usr/share/applications/QCad.desktop || return 1
|
||
|
cp -r fonts patterns data library machines $pkgdir/usr/share/qcad || return 1
|
||
|
}
|