summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Hames-Morgan2016-07-16 16:13:40 -0700
committerGrant Hames-Morgan2016-07-16 16:13:40 -0700
commit7f0ffe0943af80d7579187f311dfa43ac4c0a62c (patch)
treec33fa6fefac9e2e59b7eaca48a74340201babbdf
downloadaur-7f0ffe0943af80d7579187f311dfa43ac4c0a62c.tar.gz
Initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD44
-rw-r--r--marp.desktop10
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..90925581f8d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = marp
+ pkgdesc = Markdown presentation writer, powered by Electron
+ pkgver = 0.0.8
+ pkgrel = 1
+ url = https://github.com/yhatt/marp
+ arch = x86_64
+ arch = i686
+ license = MIT
+ depends = gtk2
+ depends = xdg-utils
+ source = https://raw.githubusercontent.com/yhatt/marp/master/images/marp.png
+ source = marp.desktop
+ md5sums = 095ab0c670c1d311be1b066e416efed3
+ md5sums = 734a3e3bd102ee9de4bc78d25008a92d
+ source_x86_64 = https://github.com/yhatt/marp/releases/download/v0.0.8/0.0.8-Marp-linux-x64.tar.gz
+ md5sums_x86_64 = bfdb8ed0f137d1f3f0d34dda96dc6611
+ source_i686 = https://github.com/yhatt/marp/releases/download/v0.0.8/0.0.8-Marp-linux-ia32.tar.gz
+ md5sums_i686 = bb508a0f4dfe7d3ed924f066a7992b97
+
+pkgname = marp
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6ebda642aaf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Grant Hames-Morgan <nthmorgan at gmail dot com>
+pkgname=marp
+pkgver=0.0.8
+pkgrel=1
+pkgdesc="Markdown presentation writer, powered by Electron"
+arch=('x86_64' 'i686')
+url="https://github.com/yhatt/marp"
+license=('MIT')
+depends=('gtk2' 'xdg-utils')
+
+# Package
+source_x86_64=("${url}/releases/download/v${pkgver}/${pkgver}-Marp-linux-x64.tar.gz")
+md5sums_x86_64=('bfdb8ed0f137d1f3f0d34dda96dc6611')
+source_i686=("${url}/releases/download/v${pkgver}/${pkgver}-Marp-linux-ia32.tar.gz")
+md5sums_i686=('bb508a0f4dfe7d3ed924f066a7992b97')
+
+# Icon and desktop file
+source=(
+ "https://raw.githubusercontent.com/yhatt/marp/master/images/marp.png"
+ "marp.desktop"
+)
+md5sums=(
+ '095ab0c670c1d311be1b066e416efed3'
+ '734a3e3bd102ee9de4bc78d25008a92d'
+)
+
+package() {
+ # Create /usr/bin for the executable and /usr/lib for the package
+ install -dm755 ${pkgdir}/usr/bin
+ install -dm755 ${pkgdir}/usr/lib/${pkgname}
+
+ # This will be broken until all files are in place (that's okay)
+ ln -s /usr/lib/marp/Marp ${pkgdir}/usr/bin/marp
+
+ install -Dm644 marp.png ${pkgdir}/usr/share/pixmaps/marp.png
+ install -Dm644 marp.desktop ${pkgdir}/usr/share/applications/marp.desktop
+ install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+
+ # Remove unneeded files to save space
+ rm marp.{png,desktop} LICENSE
+ rm ${pkgver}-Marp-linux-*.tar.gz
+
+ cp -r ./* ${pkgdir}/usr/lib/${pkgname}
+}
diff --git a/marp.desktop b/marp.desktop
new file mode 100644
index 00000000000..a5229b7edcf
--- /dev/null
+++ b/marp.desktop
@@ -0,0 +1,10 @@
+#!/usr/bin/env xdg-open
+[Desktop Entry]
+Name=Marp
+Categories=Utility;TextEditor;Development
+Comment=Markdown presentation writer, powered by Electron
+Exec=/usr/bin/marp
+GenericName=Presentation Writer
+Icon=marp
+StartupNotify=false
+Type=Application