updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / librecad / PKGBUILD
blob4ac77c59ee9d10bdba17a27f37afc0060edd1e30
1 # Maintainer: Christian Hesse <mail@eworm.de>
2 # Contributor: mickele <mimocciola at yahoo dot com> (librecad-git PKGBUILD)
3 # Contributor: Ilmari Repo <ilmari at gmail dot com> (librecad-svn PKGBUILD)
4 # Contributor: GazJ Gary James <garyjames82 at gmail dot com> (CADuntu PKGBUILD)
6 pkgname=librecad
7 pkgver=1.0.0
8 _pkgtag=2d7f866
9 pkgrel=1
10 pkgdesc="A 2D CAD drawing tool based on the community edition of QCad."
11 arch=('i686' 'x86_64')
12 url="http://www.librecad.org/"
13 license=('GPL')
14 depends=('qt' 'boost')
15 conflicts=('librecad-git')
16 replaces=('librecad-svn' 'caduntu' 'caduntu-svn')
17 source=("${pkgname}-${pkgver}.zip::https://nodeload.github.com/LibreCAD/LibreCAD/zipball/v${pkgver}"
18         'librecad.desktop')
20 build() {
21   cd "${srcdir}/LibreCAD-LibreCAD-${_pkgtag}"
22   qmake
23   make
26 package() {
27   cd "${srcdir}/LibreCAD-LibreCAD-${_pkgtag}"
28   install -D -m 755 unix/librecad ${pkgdir}/usr/bin/librecad
29   install -D -m 644 "${srcdir}/librecad.desktop" "${pkgdir}/usr/share/applications/librecad.desktop"
30   install -D -m 644 res/main/librecad.png "${pkgdir}/usr/share/pixmaps/librecad.png"
31   mkdir -p "${pkgdir}/usr/share/librecad/"
32   cp -r unix/resources/{library,patterns,fonts,qm} "${pkgdir}/usr/share/librecad/"
34 md5sums=('30932a03de3b20fb6b0fd40102244ae9'
35          '19dcb83a3fcdb3752439095b118ac6d3')