initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

38
markmywords/PKGBUILD Normal file
View File

@@ -0,0 +1,38 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=markmywords
pkgver=0.1.3
pkgrel=1
pkgdesc="Minimal, free and libre markdown editor"
arch=('i686' 'x86_64')
url="https://github.com/voldyman/MarkMyWords"
license=('Expat')
depends=('discount' 'gtksourceview3' 'webkitgtk')
makedepends=('cmake' 'vala')
source=("https://github.com/voldyman/MarkMyWords/archive/v$pkgver/MarkMyWords-$pkgver.tar.gz"
"discount.patch"
"appdata.patch")
sha512sums=('5c3177841df6729c56196a124e13965e64d2027759f299e8caa6f91fc67156d866f37d8766ae6bcabecc79a61f88b06f8af06230f1a78f7957e69699f1be9586'
'2e8088e156fccce56e626d707cc2635b2e0aa732cc6d8948fd291e99c7dd9aaeda3b7ed15ec11a0b0f8f7f6887d6e4afdf3a8c918be5ac389bf7c4aa1b4b0b5e'
'fb0e06a19464841ad81dacee3a4965dcdb053ee2b950688013751b9640eb2d5357e92f2d47d4a33c552d7ca8f9ac50413d4412d6bebd96f8ee8b1ce991023795')
prepare() {
cd MarkMyWords-$pkgver
patch -Np1 -i ${srcdir}/discount.patch
patch -Np1 -i ${srcdir}/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() {
cmake -B build -G "Unix Makefiles" ${srcdir}/MarkMyWords-$pkgver/ \
-DCMAKE_INSTALL_PREFIX=/usr \
-DGSETTINGS_LOCALINSTALL=OFF
make -C build
}
package() {
make -C build DESTDIR="$pkgdir" install
install -Dm644 ${srcdir}/MarkMyWords-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

37
markmywords/appdata.patch Normal file
View File

@@ -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>

View File

@@ -0,0 +1,53 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4a7131e..87d2386 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})
@@ -115,13 +96,6 @@ OPTIONS
add_executable(mark-my-words ${VALA_C} ${generated_resources})
-target_link_libraries(mark-my-words
- ${DISCOUNT_LIB_PATH})
-
-add_dependencies(mark-my-words
- discount
-)
-
install(TARGETS mark-my-words RUNTIME
DESTINATION bin)