summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalló György2020-07-22 20:44:18 +0000
committerBalló György2020-07-22 20:44:18 +0000
commit3ffd8dd512b0479815084c6e26305e553cd5d3b1 (patch)
tree8e2afc62cc6882ce25d13cfa2779f2e7b2ed760e
downloadaur-3ffd8dd512b0479815084c6e26305e553cd5d3b1.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD42
-rw-r--r--appdata.patch37
-rw-r--r--discount.patch39
4 files changed, 139 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bb9af78945d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = markmywords
+ pkgdesc = Minimal Markdown editor
+ pkgver = 0.1.3
+ pkgrel = 1
+ url = https://github.com/voldyman/MarkMyWords
+ arch = x86_64
+ license = MIT
+ makedepends = cmake
+ makedepends = vala
+ depends = discount
+ depends = gtksourceview3
+ depends = webkit2gtk
+ source = https://github.com/voldyman/MarkMyWords/archive/v0.1.3/MarkMyWords-0.1.3.tar.gz
+ source = discount.patch
+ source = appdata.patch
+ sha256sums = d7c0c09ef9dce842721a3e957336b77bd1ac157ef5866c56cc81ddc759fba4f0
+ sha256sums = e186cf58850bbe6780ba278be8f9aa8e5c08a7d0d01422a6a0745efb2417c77c
+ sha256sums = 3d1507a0f2c461eafbeff4750d4d95cf4d91e5bda12a95785a3fa156e9e7dbc0
+
+pkgname = markmywords
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..74a4d742a91
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer:
+# Contributor: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=markmywords
+pkgver=0.1.3
+pkgrel=1
+pkgdesc="Minimal Markdown editor"
+arch=(x86_64)
+url="https://github.com/voldyman/MarkMyWords"
+license=(MIT)
+depends=(discount gtksourceview3 webkit2gtk)
+makedepends=(cmake vala)
+source=(https://github.com/voldyman/MarkMyWords/archive/v$pkgver/MarkMyWords-$pkgver.tar.gz
+ discount.patch
+ appdata.patch)
+sha256sums=('d7c0c09ef9dce842721a3e957336b77bd1ac157ef5866c56cc81ddc759fba4f0'
+ 'e186cf58850bbe6780ba278be8f9aa8e5c08a7d0d01422a6a0745efb2417c77c'
+ '3d1507a0f2c461eafbeff4750d4d95cf4d91e5bda12a95785a3fa156e9e7dbc0')
+
+prepare() {
+ [[ -d build ]] || mkdir build
+ cd MarkMyWords-$pkgver
+ patch -Np1 -i ../discount.patch
+ patch -Np1 -i ../appdata.patch
+ sed -i 's/string args\[\]/string[] args/' src/Main.vala
+ sed -i 's|pixmaps|icons/hicolor/scalable/apps|' CMakeLists.txt
+ sed -i 's/document-export/document-revert/' resources/toolbar.ui resources/headerbar.ui
+}
+
+build() {
+ cd build
+ cmake -G "Unix Makefiles" ../MarkMyWords-$pkgver/ \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DGSETTINGS_LOCALINSTALL=OFF
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+ install -Dm644 ../MarkMyWords-$pkgver/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/appdata.patch b/appdata.patch
new file mode 100644
index 00000000000..b06c0aee447
--- /dev/null
+++ b/appdata.patch
@@ -0,0 +1,37 @@
+From 263c64e70fe2a2c2866f680f9b8b3c776d7e0e65 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
+Date: Wed, 22 Jul 2020 20:08:57 +0200
+Subject: [PATCH] Update appdata.xml to follow the current standard
+
+---
+ data/com.github.voldyman.markmywords.appdata.xml | 15 ++++++++++++---
+ 1 file changed, 12 insertions(+), 3 deletions(-)
+
+diff --git a/data/com.github.voldyman.markmywords.appdata.xml b/data/com.github.voldyman.markmywords.appdata.xml
+index fa58148..f2a6c06 100644
+--- a/data/com.github.voldyman.markmywords.appdata.xml
++++ b/data/com.github.voldyman.markmywords.appdata.xml
+@@ -1,11 +1,20 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+-<!-- Copyright 2017 Your Name <you@email.com> -->
+-<component type="desktop">
++<component type="desktop-application">
+ <id>com.github.voldyman.markmywords.desktop</id>
+- <metadata_license>MIT</metadata_license>
++ <launchable type="desktop-id">mark-my-words.desktop</launchable>
++ <metadata_license>CC0-1.0</metadata_license>
++ <project_license>MIT</project_license>
+ <name>Mark My Words</name>
+ <summary>A clean markdown editor</summary>
+ <description>
+ <p>Create and edit files in markdown format with live preview.</p>
+ </description>
++ <screenshots>
++ <screenshot type="default">
++ <image>https://github.com/voldyman/MarkMyWords/raw/master/screenshots/screenshot-2015-1-29.png</image>
++ </screenshot>
++ </screenshots>
++ <developer_name>Akshay Shekher</developer_name>
++ <url type="homepage">https://github.com/voldyman/MarkMyWords</url>
++ <url type="bugtracker">https://github.com/voldyman/MarkMyWords/issues</url>
+ </component>
diff --git a/discount.patch b/discount.patch
new file mode 100644
index 00000000000..74a2d7b785d
--- /dev/null
+++ b/discount.patch
@@ -0,0 +1,39 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4a7131e..13d15b5 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,26 +2,6 @@ project(MarkMyWords)
+
+ cmake_minimum_required(VERSION 2.6)
+
+-# build the markdown lib
+-include(ExternalProject)
+-set(DISCOUNT_DEP_PATH ${CMAKE_SOURCE_DIR}/deps/discount)
+-set(DISCOUNT_LIB_PATH ${CMAKE_BINARY_DIR}/libmarkdown.a)
+-set(DISCOUNT_INCLUDE_PATH ${DISCOUNT_DEP_PATH})
+-
+-ExternalProject_Add(discount
+- PREFIX ${DISCOUNT_DEP_PATH}
+- SOURCE_DIR ${DISCOUNT_DEP_PATH}
+- CONFIGURE_COMMAND
+- ${DISCOUNT_DEP_PATH}/configure.sh --src=${DISCOUNT_DEP_PATH}
+- --prefix=${CMAKE_BINARY_DIR}
+- --libdir=${CMAKE_BINARY_DIR}
+- --with-fenced-code
+- BUILD_COMMAND make install
+- BUILD_IN_SOURCE 1
+-)
+-
+-include_directories(${DISCOUNT_INCLUDE_PATH})
+-
+ # build UI lib
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
+
+@@ -39,6 +19,7 @@ pkg_check_modules(DEPS REQUIRED
+ gtksourceview-3.0>=3.10
+ gthread-2.0
+ gtk+-3.0>=3.9.10
++ libmarkdown
+ )
+
+ add_definitions(${DEPS_CFLAGS})