summaryrefslogtreecommitdiff
path: root/pcr/upp
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-02-21 00:13:22 +0100
committerAndreas Grapentin <andreas@grapentin.org>2019-02-21 00:13:22 +0100
commit6bc15bfbc43c03e8560b9f9a765da215ca3f8252 (patch)
tree2c4ccda8ed22c0929fd6828e4b7ee97c0c2c0a1c /pcr/upp
parentcb5a9cc0d53f3616d0d922ee5e649d55c5831f5f (diff)
pcr/upp: added
Diffstat (limited to 'pcr/upp')
-rw-r--r--pcr/upp/GCC.bm23
-rw-r--r--pcr/upp/PKGBUILD125
-rw-r--r--pcr/upp/license.txt9
3 files changed, 157 insertions, 0 deletions
diff --git a/pcr/upp/GCC.bm b/pcr/upp/GCC.bm
new file mode 100644
index 000000000..602c0764c
--- /dev/null
+++ b/pcr/upp/GCC.bm
@@ -0,0 +1,23 @@
+BUILDER = "GCC";
+COMPILER = "";
+COMMON_OPTIONS = "";
+COMMON_CPP_OPTIONS = "";
+COMMON_C_OPTIONS = "";
+COMMON_FLAGS = "";
+DEBUG_INFO = "2";
+DEBUG_BLITZ = "1";
+DEBUG_LINKMODE = "1";
+DEBUG_OPTIONS = "-O0";
+DEBUG_FLAGS = "";
+DEBUG_LINK = "";
+RELEASE_BLITZ = "0";
+RELEASE_LINKMODE = "1";
+RELEASE_OPTIONS = "-O3 -ffunction-sections -fdata-sections";
+RELEASE_SIZE_OPTIONS = "-Os -finline-limit=20 -ffunction-sections -fdata-sections";
+RELEASE_FLAGS = "";
+RELEASE_LINK = "-Wl,--gc-sections";
+DEBUGGER = "gdb";
+PATH = "";
+INCLUDE = "/usr/include/freetype2;/usr/include/gtk-2.0;/usr/include/glib-2.0;/usr/lib64/glib-2.0/include;/usr/lib64/gtk-2.0/include;/usr/lib/glib-2.0/include;/usr/lib/gtk-2.0/include;/usr/include/cairo;/usr/include/pango-1.0;/usr/include/atk-1.0;/usr/X11R6/include;/usr/X11R6/include/freetype2;/usr/X11R6/include/gtk-2.0;/usr/X11R6/include/glib-2.0;/usr/X11R6/lib/glib-2.0/include;/usr/X11R6/lib/gtk-2.0/include;/usr/X11R6/include/cairo;/usr/X11R6/include/pango-1.0;/usr/X11R6/include/atk-1.0;/usr/include/c++/4.5.0;/usr/include/c++/4.5.0/i686-pc-linux-gnu;/usr/include/webkit-1.0;/usr/include/libsoup-2.4;/usr/include/libxml2";
+LIB = "/usr/X11R6/lib;/usr/lib64;/usr/lib;/usr/local/lib";
+LINKMODE_LOCK = "0";
diff --git a/pcr/upp/PKGBUILD b/pcr/upp/PKGBUILD
new file mode 100644
index 000000000..0b11ff46c
--- /dev/null
+++ b/pcr/upp/PKGBUILD
@@ -0,0 +1,125 @@
+# Maintainer (AUR): Jan Dolinar <dolik.rce@gmail.com>
+
+pkgbase=upp
+pkgname=(upp theide umk)
+pkgver=2018.1
+_revision=11873
+pkgrel=1
+pkgdesc="Radical and innovative multiplatform C++ framework (known as U++)"
+arch=('i686' 'x86_64')
+url="http://www.ultimatepp.org"
+license=('BSD')
+groups=()
+depends=('gtk2' 'libnotify' 'libpng' 'gcc-libs' 'libxft' 'desktop-file-utils')
+makedepends=()
+optdepends=('libnotify: Enables compiling gtk-styled apps' 'sox: Enables playing notification sounds')
+replaces=()
+backup=()
+options=(!makeflags emptydirs !strip)
+source=("http://downloads.sourceforge.net/project/upp/upp/$pkgver/upp-x11-src-$_revision.tar.gz"
+ 'GCC.bm'
+ 'license.txt'
+ 'https://raw.githubusercontent.com/ultimatepp/mirror/master/uppbox/lpbuild2/theide.1'
+ 'https://raw.githubusercontent.com/ultimatepp/mirror/master/uppbox/lpbuild2/umk.1'
+ 'https://raw.githubusercontent.com/ultimatepp/mirror/master/uppbox/lpbuild2/mkfile')
+noextract=()
+sha256sums=('0231b768830db96257ebf7a9cc1aaff05017aa40a2ea6dfa577de7232c1cd07b'
+ '5c0955ef99bc08d4c79b96a470bc17eb2ae3bed5f0d66d86eff7fb726629ae79'
+ '880ad22b3a7cef8adc2750553e5b7b785ec926168f50e01bacddcae52c07e71a'
+ 'cdb98e08996a809c9a323f83768edde6a22a6aad73d9ed6a193f70ac78a8b123'
+ 'ce881f93471bcb65a7cc4cb4d539579fda67c783b810289ab45a02113146f645'
+ '45be7a52fb5db25c09b3851c708f2d21022240667e3d2cf39b4f614c9ad01078')
+
+# uncomment this to true to build theide with simpler GUI (with no GTK dependecies)
+#USE_NOGTK=false
+
+build() {
+ cd "$srcdir/upp-x11-src-$_revision"
+
+ FLAGS="GCC GUI MT STACKTRACE"
+ USE_NOGTK="${USE_NOGTK:-false}"
+ if [ "$USE_NOGTK" == "true" ]; then
+ SUFFIX="-nogtk"
+ FLAGS="$FLAGS NOGTK"
+ fi
+
+ # set the version string
+ echo "#define IDE_VERSION \"$pkgver-Parabola-$CARCH-$SUFFIX\"" > "uppsrc/ide/version.h"
+
+ # build
+ msg2 "Building umk..."
+ make -f "$srcdir/mkfile" PKG=umk FLAGS="GCC STACKTRACE" NESTS="uppsrc" TIME= COLOR=0 USEMAINCFG=0 JOBS=5 ECHO=0 TARGET="$srcdir/umk"
+
+ msg2 "Building theide..."
+ make -f "$srcdir/mkfile" PKG=ide FLAGS="$FLAGS" NESTS="uppsrc" TIME= COLOR=0 USEMAINCFG=0 JOBS=5 ECHO=0 TARGET="$srcdir/theide"
+}
+
+package_theide(){
+ # theide specific settings
+ pkgdesc="Modern IDE designed for developping large U++/C++ applications"
+ if [ "$USE_NOGTK" = true ]; then
+ depends=('libpng' 'gcc-libs' 'libxft' 'libxinerama' 'desktop-file-utils')
+ optdepends=('sox: Enables notification sounds')
+ else
+ depends=('gtk2' 'libnotify' 'desktop-file-utils')
+ optdepends=('sox: Enables notification sounds')
+ fi
+ options=(!makeflags emptydirs)
+
+ # license
+ install -D "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+ # man pages
+ install -D "$srcdir/theide.1" "$pkgdir/usr/share/man/man1/theide.1"
+ install -D "$srcdir/umk.1" "$pkgdir/usr/share/man/man1/umk.1"
+ # desktop entry
+ install -D "$srcdir/upp-x11-src-$_revision/uppsrc/ide/theide.desktop" "$pkgdir/usr/share/applications/theide.desktop"
+ # icon
+ install -D "$srcdir/upp-x11-src-$_revision/uppsrc/ide/theide-48.png" "$pkgdir/usr/share/pixmaps/theide.png"
+ # fix permissions
+ find "$pkgdir/usr/" -print0 | xargs -0 chown root:root
+ find "$pkgdir/usr/" -type f -print0 | xargs -0 chmod 644
+ find "$pkgdir/usr/" -type d -print0 | xargs -0 chmod 755
+ # install applications
+ install -D "$srcdir/theide" "$pkgdir/usr/bin/theide"
+}
+
+package_umk(){
+ # theide specific settings
+ pkgdesc="Command line builder for U++ applications"
+ depends=('gcc-libs' 'desktop-file-utils')
+ options=(!makeflags emptydirs)
+
+ # license
+ install -D "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+ # man pages
+ install -D "$srcdir/umk.1" "$pkgdir/usr/share/man/man1/umk.1"
+ # fix permissions
+ find "$pkgdir/usr/" -print0 | xargs -0 chown root:root
+ find "$pkgdir/usr/" -type f -print0 | xargs -0 chmod 644
+ find "$pkgdir/usr/" -type d -print0 | xargs -0 chmod 755
+ # install applications
+ install -D "$srcdir/umk" "$pkgdir/usr/bin/umk"
+}
+
+package_upp() {
+ pkgdesc="Radical and innovative multiplatform C++ framework (known as U++)"
+ depends=('theide')
+ optdepends=('libnotify: Enables compiling gtk-styled apps')
+ options=(emptydirs !strip)
+ #copy source files
+ mkdir -p "$pkgdir/usr/share/upp"
+ msg2 "Moving the source codes..."
+ cp -r "$srcdir/upp-x11-src-$_revision/"{bazaar,examples,reference,tutorial,uppsrc} "$pkgdir/usr/share/upp/"
+ echo "#define IDE_VERSION \"$pkgver-Parabola\"" > "$pkgdir/usr/share/upp/uppsrc/ide/version.h"
+ msg2 "Copying additional files..."
+ #license
+ mkdir -p "$pkgdir/usr/share/licenses/upp"
+ cp "$srcdir/license.txt" "$pkgdir/usr/share/licenses/upp"
+ #build method
+ cp "$srcdir/GCC.bm" "$pkgdir/usr/share/upp"
+ #fix permissions
+ msg2 "Setting permissions..."
+ find "$pkgdir/usr/" -print0 | xargs -0 chown root:root
+ find "$pkgdir/usr/" -type f -print0 | xargs -0 chmod 644
+ find "$pkgdir/usr/" -type d -print0 | xargs -0 chmod 755
+}
diff --git a/pcr/upp/license.txt b/pcr/upp/license.txt
new file mode 100644
index 000000000..6cea058a6
--- /dev/null
+++ b/pcr/upp/license.txt
@@ -0,0 +1,9 @@
+Copyright (C) 2010 Mirek Fidler, Tomas Rylek and various contributors (see AUTHORS)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies of the Software and its Copyright notices. In addition publicly documented acknowledgment must be given that this software has been used if no source code of this software is made available publicly. This includes
+acknowledgments in either Copyright notices, Manuals, Publicity and Marketing documents or any documentation provided with any product containing this software. This License does not apply to any software that links to the libraries provided by this software (statically or dynamically), but only to
+the software provided.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.