summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorarchshift2015-12-20 00:10:22 -0800
committerarchshift2015-12-20 00:12:15 -0800
commit26534d68fd17612dcb4693e3ef1b628c6d19caf8 (patch)
tree225fe149916c33d56f2fb2720086e8a5fc46c8f4 /PKGBUILD
downloadaur-26534d68fd17612dcb4693e3ef1b628c6d19caf8.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 38 insertions, 0 deletions
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"
+}