[arch-commits] Commit in librecad/repos (6 files)

Christian Hesse eworm at archlinux.org
Wed Apr 22 08:20:31 UTC 2015


    Date: Wednesday, April 22, 2015 @ 10:20:30
  Author: eworm
Revision: 131897

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  librecad/repos/community-staging-i686/
  librecad/repos/community-staging-i686/PKGBUILD
    (from rev 131896, librecad/trunk/PKGBUILD)
  librecad/repos/community-staging-i686/librecad.install
    (from rev 131896, librecad/trunk/librecad.install)
  librecad/repos/community-staging-x86_64/
  librecad/repos/community-staging-x86_64/PKGBUILD
    (from rev 131896, librecad/trunk/PKGBUILD)
  librecad/repos/community-staging-x86_64/librecad.install
    (from rev 131896, librecad/trunk/librecad.install)

-------------------------------------------+
 community-staging-i686/PKGBUILD           |   63 ++++++++++++++++++++++++++++
 community-staging-i686/librecad.install   |   13 +++++
 community-staging-x86_64/PKGBUILD         |   63 ++++++++++++++++++++++++++++
 community-staging-x86_64/librecad.install |   13 +++++
 4 files changed, 152 insertions(+)

Copied: librecad/repos/community-staging-i686/PKGBUILD (from rev 131896, librecad/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-04-22 08:20:30 UTC (rev 131897)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: mickele <mimocciola at yahoo dot com> (librecad-git PKGBUILD)
+# Contributor: Ilmari Repo <ilmari at gmail dot com> (librecad-svn PKGBUILD)
+# Contributor: GazJ Gary James <garyjames82 at gmail dot com> (CADuntu PKGBUILD)
+
+pkgname=librecad
+pkgver=2.0.7
+pkgrel=3
+pkgdesc='A 2D CAD drawing tool based on the community edition of QCad'
+arch=('i686' 'x86_64')
+url='http://www.librecad.org/'
+license=('GPL')
+depends=('qt5-base' 'qt5-svg' 'qt5-tools' 'libxcb' 'muparser')
+makedepends=('boost' 'imagemagick' 'librsvg')
+conflicts=('librecad-git')
+replaces=('librecad-svn' 'caduntu' 'caduntu-svn')
+install=librecad.install
+source=("${pkgname}-${pkgver}.tar.gz::https://codeload.github.com/LibreCAD/LibreCAD/tar.gz/${pkgver}")
+sha256sums=('c8ae88be5e2d1cac9c979c2922b52d33d4f156bff63ea217c646f6bc07f88c0d')
+
+build() {
+	cd "${srcdir}/LibreCAD-${pkgver}"
+
+	# fix version string
+	sed -i "/^SCMREVISION/c SCMREVISION=\"${pkgver}\"" librecad/src/src.pro
+
+	export CPPFLAGS="-std=c++0x"
+	qmake-qt5 librecad.pro
+	make
+}
+
+package() {
+	cd "${srcdir}/LibreCAD-${pkgver}"
+
+	# executables
+	install -D -m0755 unix/librecad "${pkgdir}/usr/bin/librecad"
+	install -D -m0755 unix/ttf2lff "${pkgdir}/usr/bin/ttf2lff"
+
+	# desktop file and man pages
+	install -D -m0644 desktop/librecad.desktop "${pkgdir}/usr/share/applications/librecad.desktop"
+	install -D -m0644 desktop/librecad.1 "${pkgdir}/usr/share/man/man1/librecad.1"
+
+	# documentation
+	install -D -m0644 librecad/support/doc/README "${pkgdir}/usr/share/doc/librecad/index.README"
+	install -D -m0644 librecad/support/doc/index.html "${pkgdir}/usr/share/doc/librecad/index.html"
+	install -D -m0644 librecad/support/doc/style.css "${pkgdir}/usr/share/doc/librecad/style.css"
+	install -D -m0644 librecad/support/doc/img/librecadlogo.png "${pkgdir}/usr/share/doc/librecad/img/librecadlogo.png"
+
+	# icons
+	for SIZE in 16 24 32 48 64 96 128; do
+		convert -scale ${SIZE} \
+			desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg \
+			${srcdir}/librecad.png
+		install -D -m0644 ${srcdir}/librecad.png "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/librecad.png"
+	done
+	install -D -m0644 desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/librecad.svg"
+
+	# resources
+	mkdir -p "${pkgdir}/usr/share/librecad/"
+	cp -r unix/resources/{library,patterns,fonts,qm} "${pkgdir}/usr/share/librecad/"
+}
+

Copied: librecad/repos/community-staging-i686/librecad.install (from rev 131896, librecad/trunk/librecad.install)
===================================================================
--- community-staging-i686/librecad.install	                        (rev 0)
+++ community-staging-i686/librecad.install	2015-04-22 08:20:30 UTC (rev 131897)
@@ -0,0 +1,13 @@
+post_install() {
+	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+	update-desktop-database -q
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}
+

Copied: librecad/repos/community-staging-x86_64/PKGBUILD (from rev 131896, librecad/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-04-22 08:20:30 UTC (rev 131897)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Christian Hesse <mail at eworm.de>
+# Contributor: mickele <mimocciola at yahoo dot com> (librecad-git PKGBUILD)
+# Contributor: Ilmari Repo <ilmari at gmail dot com> (librecad-svn PKGBUILD)
+# Contributor: GazJ Gary James <garyjames82 at gmail dot com> (CADuntu PKGBUILD)
+
+pkgname=librecad
+pkgver=2.0.7
+pkgrel=3
+pkgdesc='A 2D CAD drawing tool based on the community edition of QCad'
+arch=('i686' 'x86_64')
+url='http://www.librecad.org/'
+license=('GPL')
+depends=('qt5-base' 'qt5-svg' 'qt5-tools' 'libxcb' 'muparser')
+makedepends=('boost' 'imagemagick' 'librsvg')
+conflicts=('librecad-git')
+replaces=('librecad-svn' 'caduntu' 'caduntu-svn')
+install=librecad.install
+source=("${pkgname}-${pkgver}.tar.gz::https://codeload.github.com/LibreCAD/LibreCAD/tar.gz/${pkgver}")
+sha256sums=('c8ae88be5e2d1cac9c979c2922b52d33d4f156bff63ea217c646f6bc07f88c0d')
+
+build() {
+	cd "${srcdir}/LibreCAD-${pkgver}"
+
+	# fix version string
+	sed -i "/^SCMREVISION/c SCMREVISION=\"${pkgver}\"" librecad/src/src.pro
+
+	export CPPFLAGS="-std=c++0x"
+	qmake-qt5 librecad.pro
+	make
+}
+
+package() {
+	cd "${srcdir}/LibreCAD-${pkgver}"
+
+	# executables
+	install -D -m0755 unix/librecad "${pkgdir}/usr/bin/librecad"
+	install -D -m0755 unix/ttf2lff "${pkgdir}/usr/bin/ttf2lff"
+
+	# desktop file and man pages
+	install -D -m0644 desktop/librecad.desktop "${pkgdir}/usr/share/applications/librecad.desktop"
+	install -D -m0644 desktop/librecad.1 "${pkgdir}/usr/share/man/man1/librecad.1"
+
+	# documentation
+	install -D -m0644 librecad/support/doc/README "${pkgdir}/usr/share/doc/librecad/index.README"
+	install -D -m0644 librecad/support/doc/index.html "${pkgdir}/usr/share/doc/librecad/index.html"
+	install -D -m0644 librecad/support/doc/style.css "${pkgdir}/usr/share/doc/librecad/style.css"
+	install -D -m0644 librecad/support/doc/img/librecadlogo.png "${pkgdir}/usr/share/doc/librecad/img/librecadlogo.png"
+
+	# icons
+	for SIZE in 16 24 32 48 64 96 128; do
+		convert -scale ${SIZE} \
+			desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg \
+			${srcdir}/librecad.png
+		install -D -m0644 ${srcdir}/librecad.png "${pkgdir}/usr/share/icons/hicolor/${SIZE}x${SIZE}/apps/librecad.png"
+	done
+	install -D -m0644 desktop/graphics_icons_and_splash/Icon\ LibreCAD/Icon_Librecad.svg "${pkgdir}/usr/share/icons/hicolor/scalable/apps/librecad.svg"
+
+	# resources
+	mkdir -p "${pkgdir}/usr/share/librecad/"
+	cp -r unix/resources/{library,patterns,fonts,qm} "${pkgdir}/usr/share/librecad/"
+}
+

Copied: librecad/repos/community-staging-x86_64/librecad.install (from rev 131896, librecad/trunk/librecad.install)
===================================================================
--- community-staging-x86_64/librecad.install	                        (rev 0)
+++ community-staging-x86_64/librecad.install	2015-04-22 08:20:30 UTC (rev 131897)
@@ -0,0 +1,13 @@
+post_install() {
+	gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+	update-desktop-database -q
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}
+



More information about the arch-commits mailing list