summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorarchshift2015-12-20 00:10:22 -0800
committerarchshift2015-12-20 00:12:15 -0800
commit26534d68fd17612dcb4693e3ef1b628c6d19caf8 (patch)
tree225fe149916c33d56f2fb2720086e8a5fc46c8f4
downloadaur-26534d68fd17612dcb4693e3ef1b628c6d19caf8.tar.gz
Initial commit
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore7
-rw-r--r--CMakeLists.patch16
-rw-r--r--PKGBUILD38
4 files changed, 85 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b4bc76784f5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+# Generated by mksrcinfo v8
+# Sun Dec 20 08:11:50 UTC 2015
+pkgbase = jucipp-git
+ pkgdesc = A lightweight platform-independent C++ IDE
+ pkgver = r1134.0837f6c
+ pkgrel = 1
+ url = https://github.com/cppit/jucipp
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = cmake
+ makedepends = pkg-config
+ makedepends = boost
+ depends = gtksourceviewmm
+ depends = clang
+ depends = aspell
+ source = jucipp::git+https://github.com/cppit/jucipp.git
+ source = CMakeLists.patch
+ sha1sums = SKIP
+ sha1sums = SKIP
+
+pkgname = jucipp-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..9f5b0b39732
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+jucipp/*
+src/*
+pkg/*
+
+*.pkg.tar.xz
+
+*.swp
diff --git a/CMakeLists.patch b/CMakeLists.patch
new file mode 100644
index 00000000000..fa43ffb3e98
--- /dev/null
+++ b/CMakeLists.patch
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1bc6e2b..57e2f81 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -9,8 +9,7 @@ project (${project_name})
+
+ add_subdirectory("src")
+
+-find_program(XDG_DESKTOP_MENU_EXECUTABLE xdg-desktop-menu)
+-if(XDG_DESKTOP_MENU_EXECUTABLE)
+- file(MAKE_DIRECTORY "/usr/share/desktop-directories") #Workaround for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730621
+- install(CODE "execute_process(COMMAND ${XDG_DESKTOP_MENU_EXECUTABLE} install --novendor share/juci.desktop)")
++if(${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD|OpenBSD|NetBSD")
++ install(FILES "${CMAKE_SOURCE_DIR}/share/juci.desktop"
++ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications")
+ endif()
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c70f96e04f4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: archshift
+
+_pkgbase=jucipp
+pkgbase=$_pkgbase-git
+pkgname=("$_pkgbase-git")
+pkgdesc='A lightweight platform-independent C++ IDE'
+pkgver=r1134.0837f6c
+pkgrel=1
+
+arch=('i686' 'x86_64')
+url="https://github.com/cppit/jucipp"
+license=('MIT')
+depends=('gtksourceviewmm' 'clang' 'aspell')
+makedepends=('git' 'cmake' 'pkg-config' 'boost')
+
+source=("$_pkgbase::git+https://github.com/cppit/jucipp.git" "CMakeLists.patch")
+sha1sums=('SKIP' 'SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgbase"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$_pkgbase"
+ git submodule update --init
+
+ git apply "$srcdir/CMakeLists.patch"
+ mkdir -p build
+}
+
+package_jucipp-git() {
+ cd "$srcdir/$_pkgbase/build"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev ..
+
+ make DESTDIR="$pkgdir" install
+ install -D -m644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}