summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Mocciola2015-06-28 15:43:23 +0200
committerMichele Mocciola2015-06-28 15:43:23 +0200
commit3dfa306cbcc598a543049f57dac8ab64617f4de5 (patch)
treee363abf40e849db967b48665e5a86ce76ca8827c
downloadaur-3dfa306cbcc598a543049f57dac8ab64617f4de5.tar.gz
Initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD66
-rw-r--r--librecad.desktop9
3 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..39303ae12a9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = librecad-git
+ pkgdesc = A 2D CAD drawing tool based on the community edition of QCad.
+ pkgver = 2.0.6_66_g9b058e0
+ pkgrel = 1
+ url = http://sourceforge.net/projects/librecad/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = qt4
+ depends = boost
+ depends = muparser
+ provides = librecad
+ conflicts = librecad
+ replaces = librecad-svn
+ replaces = caduntu
+ replaces = caduntu-svn
+ source = LibreCAD::git://github.com/LibreCAD/LibreCAD.git
+ source = librecad.desktop
+ md5sums = SKIP
+ md5sums = 19dcb83a3fcdb3752439095b118ac6d3
+
+pkgname = librecad-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5f022b3bd14
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,66 @@
+# Maintainer: mickele <mimocciola____at____yahoo____dot____com>
+# Contributor: Ilmari Repo <ilmari____at____gmail____dot____com> (librecad-svn PKGBUILD)
+# Contributor: GazJ Gary James <garyjames82____at____gmail____ dot____com> (CADuntu PKGBUILD)
+
+pkgname=librecad-git
+pkgver=2.0.6_66_g9b058e0
+pkgrel=1
+pkgdesc="A 2D CAD drawing tool based on the community edition of QCad."
+arch=('i686' 'x86_64')
+url="http://sourceforge.net/projects/librecad/"
+license=('GPL')
+depends=('qt4' 'boost' 'muparser')
+makedepends=('git')
+conflicts=('librecad')
+provides=('librecad')
+replaces=('librecad-svn' 'caduntu' 'caduntu-svn')
+source=('LibreCAD::git://github.com/LibreCAD/LibreCAD.git' 'librecad.desktop')
+md5sums=('SKIP' '19dcb83a3fcdb3752439095b118ac6d3')
+
+_gitroot="https://github.com/LibreCAD/LibreCAD.git"
+_gitname="LibreCAD"
+
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+
+ sed -e "s|-|_|g" <<< $(git describe --tags)
+}
+
+build() {
+ cd "${srcdir}"
+ msg "Connecting to GIT server...."
+
+ if [ -d ${_gitname}/.git ] ; then
+ cd "${_gitname}"
+
+ # Change remote url to anongit
+ if [ -z $( git branch -v | grep anongit ) ] ; then
+ git remote set-url origin ${_gitroot}
+ fi
+
+ git pull origin master
+ msg "The local files are updated."
+ else
+ git clone ${_gitroot} ${_gitname}
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting make..."
+
+ cd "${srcdir}/${_gitname}"
+ export CPPFLAGS="-std=c++0x"
+ qmake-qt4 librecad.pro
+ make
+}
+
+package() {
+ cd "${srcdir}/${_gitname}"
+ install -D -m 755 unix/librecad "${pkgdir}/usr/bin/librecad"
+ install -D -m 755 unix/ttf2lff "${pkgdir}/usr/bin/ttf2lff"
+
+ mkdir -p "${pkgdir}/usr/share/librecad"
+ cp -r unix/resources/{library,patterns,fonts,qm} "${pkgdir}/usr/share/librecad"
+
+ install -D -m 644 "${srcdir}/librecad.desktop" "${pkgdir}/usr/share/applications/librecad.desktop"
+ install -D -m 644 librecad/res/main/librecad.png "${pkgdir}/usr/share/pixmaps/librecad.png"
+}
diff --git a/librecad.desktop b/librecad.desktop
new file mode 100644
index 00000000000..18764ef4b3f
--- /dev/null
+++ b/librecad.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Exec=/usr/bin/librecad
+Icon=/usr/share/pixmaps/librecad.png
+Name=LibreCAD
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=Application;Office;