2011-12-29 06:58:11 +08:00
|
|
|
#
|
|
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
|
|
|
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
|
|
|
|
|
|
|
pkgname=librecad
|
|
|
|
_pkgname=LibreCAD
|
2013-01-04 04:10:09 +08:00
|
|
|
pkgver=1.0.2
|
|
|
|
_pkgtag=a5c34b2
|
2011-12-29 06:58:11 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A 2D CAD drawing tool based on the community edition of QCad"
|
2013-01-04 04:10:09 +08:00
|
|
|
arch=('x86_64')
|
2011-12-29 06:58:11 +08:00
|
|
|
url="http://www.librecad.org/"
|
|
|
|
license=('GPL3')
|
2013-01-04 04:10:09 +08:00
|
|
|
depends=('qt' 'boost' 'muparser')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('graphics')
|
2011-12-29 06:58:11 +08:00
|
|
|
source=("${pkgname}-${pkgver}.tar.bz2::https://github.com/$_pkgname/$_pkgname/tarball/v${pkgver}"
|
|
|
|
"http://aur.archlinux.org/packages/li/$pkgname/$pkgname.tar.gz")
|
2013-01-04 04:10:09 +08:00
|
|
|
md5sums=('afaa38dc54fc9a694b17aed19b1a3269'
|
|
|
|
'e70c1d87fee314e7291a83db4e545285')
|
2011-12-29 06:58:11 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/$_pkgname-$_pkgname-${_pkgtag}"
|
|
|
|
qmake
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/$_pkgname-$_pkgname-${_pkgtag}"
|
|
|
|
|
|
|
|
# Executable.
|
|
|
|
install -D -m 755 unix/$pkgname ${pkgdir}/usr/bin/$pkgname
|
|
|
|
|
|
|
|
# Desktop Integration.
|
|
|
|
install -D -m 644 "${srcdir}/$pkgname/$pkgname.desktop" "${pkgdir}/usr/share/applications/$pkgname.desktop"
|
|
|
|
install -D -m 644 res/main/$pkgname.png "${pkgdir}/usr/share/pixmaps/$pkgname.png"
|
|
|
|
|
|
|
|
# Resources.
|
|
|
|
mkdir -p "${pkgdir}/usr/share/$pkgname/"
|
|
|
|
cp -r unix/resources/{library,patterns,fonts,qm} "${pkgdir}/usr/share/$pkgname/"
|
|
|
|
}
|