summarylogtreecommitdiffstats
path: root/PKGBUILD
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 /PKGBUILD
downloadaur-7f0ffe0943af80d7579187f311dfa43ac4c0a62c.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 44 insertions, 0 deletions
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}
+}