Date: Sunday, August 30, 2015 @ 21:00:44
  Author: alucryd
Revision: 138988

Add scratch-text-editor

Added:
  scratch-text-editor/
  scratch-text-editor/.SRCINFO
  scratch-text-editor/trunk/
  scratch-text-editor/trunk/PKGBUILD
  scratch-text-editor/trunk/scratch-text-editor.install

-----------------------------------+
 .SRCINFO                          |   28 +++++++++++++++++++
 trunk/PKGBUILD                    |   52 ++++++++++++++++++++++++++++++++++++
 trunk/scratch-text-editor.install |   14 +++++++++
 3 files changed, 94 insertions(+)

Added: scratch-text-editor/.SRCINFO
===================================================================
--- scratch-text-editor/.SRCINFO                                (rev 0)
+++ scratch-text-editor/.SRCINFO        2015-08-30 19:00:44 UTC (rev 138988)
@@ -0,0 +1,28 @@
+pkgbase = scratch-text-editor
+       pkgdesc = The Pantheon Text Editor
+       pkgver = 2.1.0
+       pkgrel = 1
+       url = https://launchpad.net/scratch
+       install = scratch-text-editor.install
+       arch = i686
+       arch = x86_64
+       groups = pantheon
+       license = GPL3
+       makedepends = cmake
+       makedepends = gobject-introspection
+       makedepends = vala
+       makedepends = vte3
+       makedepends = webkitgtk
+       depends = desktop-file-utils
+       depends = granite-bzr
+       depends = gtksourceview3
+       depends = libpeas
+       depends = zeitgeist
+       optdepends = vala: Outline extension
+       optdepends = vte3: Terminal extension
+       optdepends = webkitgtk: Browser Preview extension
+       source = 
https://launchpad.net/scratch/2.x/2.1/+download/scratch-2.1.0.tgz
+       sha256sums = 
daaaffbf1d990dd9359da27a594a29761100ffb12dd60b275f099f10646f225e
+
+pkgname = scratch-text-editor
+

Added: scratch-text-editor/trunk/PKGBUILD
===================================================================
--- scratch-text-editor/trunk/PKGBUILD                          (rev 0)
+++ scratch-text-editor/trunk/PKGBUILD  2015-08-30 19:00:44 UTC (rev 138988)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Maxime Gauduin <[email protected]>
+# Contributor: Ner0 <[email protected]>
+
+pkgname=scratch-text-editor
+pkgver=2.2.0
+pkgrel=1
+pkgdesc='The Pantheon Text Editor'
+arch=('i686' 'x86_64')
+url='https://launchpad.net/scratch'
+license=('GPL3')
+groups=('pantheon')
+depends=('desktop-file-utils' 'glib2' 'glibc' 'gtk3' 'gtksourceview3' 'libgee'
+         'libpeas' 'pango' 'zeitgeist'
+         'libgranite.so')
+makedepends=('cmake' 'gobject-introspection' 'gtkspell3' 'vala' 'vte3'
+             'webkitgtk')
+optdepends=('gtkspell3: Spell Check extension'
+            'vala: Outline extension'
+            'vte3: Terminal extension'
+            'webkitgtk: Browser Preview extension')
+install='scratch-text-editor.install'
+source=("https://launchpad.net/scratch/${pkgver%.*.*}.x/${pkgver%.*}/+download/scratch-text-editor-${pkgver}.tar.xz";)
+sha256sums=('18fdfbdba51c92caaf879da70de9bdeac1a9e2befbdfc7052fb6a1a2f428efdc')
+
+prepare() {
+  cd scratch-text-editor-${pkgver}
+
+  if [[ -d build ]]; then
+    rm -rf build
+  fi
+  mkdir build
+}
+
+build() {
+  cd scratch-text-editor-${pkgver}/build
+
+  cmake .. \
+    -DCMAKE_BUILD_TYPE='Release' \
+    -DCMAKE_INSTALL_PREFIX='/usr' \
+    -DCMAKE_INSTALL_LIBDIR='/usr/lib' \
+    -DGSETTINGS_COMPILE='FALSE'
+  make
+}
+
+package() {
+  cd scratch-text-editor-${pkgver}/build
+
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim: ts=2 sw=2 et:


Property changes on: scratch-text-editor/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: scratch-text-editor/trunk/scratch-text-editor.install
===================================================================
--- scratch-text-editor/trunk/scratch-text-editor.install                       
        (rev 0)
+++ scratch-text-editor/trunk/scratch-text-editor.install       2015-08-30 
19:00:44 UTC (rev 138988)
@@ -0,0 +1,14 @@
+post_install() {
+  glib-compile-schemas /usr/share/glib-2.0/schemas
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to