summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.SRCINFO23
-rwxr-xr-xPKGBUILD41
-rwxr-xr-xgschemas.install11
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100755
index 00000000000..f26341316d9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = markmywords-git
+ pkgdesc = A minimal markdown editor. It is currently under heavy development.
+ pkgver = d6f19f4
+ pkgrel = 1
+ url = https://github.com/voldyman/MarkMyWords
+ install = gschemas.install
+ arch = i686
+ arch = x86_64
+ license = None
+ makedepends = vala
+ makedepends = gobject-introspection
+ makedepends = cmake
+ depends = gtksourceview3
+ depends = glib2
+ depends = gtk3
+ depends = webkit2gtk
+ provides = markmywords
+ conflicts = markmywords
+ source = git://github.com/voldyman/MarkMyWords.git
+ md5sums = SKIP
+
+pkgname = markmywords-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..fa905b49132
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Emersion <contact at emersion dot fr>
+# https://github.com/emersion/aur-markmywords
+#
+# Author: voldyman <voldyman666 at gmail dot com>
+
+_gitname="MarkMyWords"
+_pkgname="markmywords"
+pkgname="${_pkgname}-git"
+pkgver=d6f19f4
+pkgrel=1
+pkgdesc="A minimal markdown editor. It is currently under heavy development."
+url="https://github.com/voldyman/MarkMyWords"
+arch=('i686' 'x86_64')
+license=('None')
+depends=('gtksourceview3' 'glib2' 'gtk3' 'webkit2gtk')
+makedepends=('vala' 'gobject-introspection' 'cmake')
+conflicts=("${_pkgname}")
+provides=("${_pkgname}")
+install='gschemas.install'
+source=("git://github.com/voldyman/MarkMyWords.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+ git describe --always | sed 's|-|.|g' | sed 's|_|.|g' | cut -d'.' -f2-
+}
+
+build() {
+ cd "${srcdir}/${_gitname}"
+ sed -i "s|webkit2gtk-3.0|webkit2gtk-4.0|g" CMakeLists.txt
+
+ # See https://github.com/voldyman/MarkMyWords#how-to-build
+ mkdir build && cd build
+ cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr ../
+ make
+}
+
+package() {
+ cd "${srcdir}/${_gitname}/build"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/gschemas.install b/gschemas.install
new file mode 100755
index 00000000000..606e579eaa3
--- /dev/null
+++ b/gschemas.install
@@ -0,0 +1,11 @@
+post_install() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/
+}
+
+post_upgrade() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/
+}
+
+post_remove() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas/
+} \ No newline at end of file