summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Flament2018-12-16 17:46:55 +0100
committerDamien Flament2018-12-16 17:46:55 +0100
commitf256d1437938ae64ec8f62bcd73600aac1a74e4b (patch)
tree8aa50124b35ff14e8bf34327f5697f85da9b3c25
parent3f363c1506e6a1659ec82f75a804b163046e9dd7 (diff)
downloadaur-f256d1437938ae64ec8f62bcd73600aac1a74e4b.tar.gz
Reformatted PKGBUILD.
-rw-r--r--PKGBUILD83
1 files changed, 41 insertions, 42 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6c37ce0865b..ed1043fe343 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,72 +4,71 @@
# Contributor: GazJ Gary James <garyjames82 at gmail dot com> (CADuntu PKGBUILD)
pkgname=librecad-git
-pkgver=2.2.0_alpha_244_g54269f5b
+pkgver=2.2.0_rc1_91_g8604f171
pkgrel=1
pkgdesc="A 2D CAD drawing tool based on the community edition of QCad."
arch=('i686' 'x86_64')
url="http://librecad.org"
license=('GPL')
+
depends=('qt5-base' 'qt5-svg' 'qt5-tools' 'boost' 'muparser')
makedepends=('git')
provides=('librecad')
conflicts=('librecad')
replaces=('librecad-svn' 'caduntu' 'caduntu-svn')
-backup=()
-options=()
-install=
-changelog=
+
_gitname='LibreCAD'
-_gitroot="https://github.com/${_gitname}/${_gitname}.git"
-source=("${_gitname}::git://github.com/${_gitname}/${_gitname}.git" 'librecad.desktop')
-noextract=()
+_gitroot="https://github.com/$_gitname/$_gitname.git"
+source=("${_gitname}::git://github.com/$_gitname/${_gitname}.git" 'librecad.desktop')
md5sums=('SKIP' '19dcb83a3fcdb3752439095b118ac6d3')
-validpgpkeys=()
-
-pkgver() {
- cd "${srcdir}/${_gitname}"
- git describe --tags | sed -e 's/-/_/g'
+function pkgver
+{
+ cd "${srcdir}/${_gitname}"
+ git describe --tags | sed -e 's/-/_/g'
}
-prepare() {
- cd "${srcdir}"
- msg "Connecting to GIT server...."
+function prepare
+{
+ cd "${srcdir}"
+ msg "Connecting to GIT server...."
- if [[ -d ${_gitname} ]] ; then
- cd "${_gitname}" && git pull origin master
- msg "The local files are updated."
- else
- git clone ${_gitroot} ${_gitname}
- fi
+ if [[ -d ${_gitname} ]] ; then
+ cd "${_gitname}" && git pull origin master
+ msg "The local files are updated."
+ else
+ git clone ${_gitroot} ${_gitname}
+ fi
- msg "GIT checkout done or server timeout"
+ msg "GIT checkout done or server timeout"
}
-build() {
- msg "Building ${_gitname}..."
- cd "${srcdir}/${_gitname}"
- qmake-qt5 -r librecad.pro \
- QMAKE_CFLAGS="${CFLAGS}" \
- QMAKE_CXXFLAGS="${CXXFLAGS}"
+function build
+{
+ msg "Building ${_gitname}..."
+ cd "${srcdir}/${_gitname}"
+ qmake-qt5 -r librecad.pro \
+ QMAKE_CFLAGS="${CFLAGS}" \
+ QMAKE_CXXFLAGS="${CXXFLAGS}"
- make
+ make
- msg "Building ${_gitname} plugins"
+ msg "Building ${_gitname} plugins"
- cd plugins
- qmake-qt5
- make
+ cd plugins
+ qmake-qt5
+ 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"
+function 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,plugins} "${pkgdir}/usr/share/librecad"
+ mkdir -p "${pkgdir}/usr/share/librecad"
+ cp -r unix/resources/{library,patterns,fonts,qm,plugins} "${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"
+ 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"
}