summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ffbd2eea40d5cf94a2444f9a5d6d165055bdf93f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Muhammad Fairuzi Teguh <mfairuzit at gmail dot com>
# Contributor: Grant Hames-Morgan <nthmorgan at gmail dot com>
pkgname=marp
pkgver=0.0.14
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' 'gconf')

# Package
source_x86_64=("${url}/releases/download/v${pkgver}/${pkgver}-Marp-linux-x64.tar.gz")
md5sums_x86_64=('fc6c10b85af9d1627431a7269076ba14')
source_i686=("${url}/releases/download/v${pkgver}/${pkgver}-Marp-linux-ia32.tar.gz")
md5sums_i686=('af2fb6e993648426244f40ae47c39ccc')

# Icon and desktop file
source=(
	"marp.png"
	"marp.desktop"
)
md5sums=(
	'3d4ce6c7fa71611763d8d690788086f2'
	'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}
}
md5sums=('095ab0c670c1d311be1b066e416efed3'
         '734a3e3bd102ee9de4bc78d25008a92d')
md5sums_x86_64=('cfd3db228228cc54730f396d6c1d1a84')
md5sums_i686=('4f02c454197b53b4c25c4276910e21bc')
md5sums=('095ab0c670c1d311be1b066e416efed3'
         '734a3e3bd102ee9de4bc78d25008a92d')
md5sums_x86_64=('04cdc0d42c10a32289b5bafb4de694e9')
md5sums_i686=('2eb5f02c2baef7bce4d6de90c6d2fe5f')
md5sums=('095ab0c670c1d311be1b066e416efed3'
         '734a3e3bd102ee9de4bc78d25008a92d')
md5sums_x86_64=('142c5f0fc49e61fa36b9724d395a5c65')
md5sums_i686=('5dcd7977698e1d891cc768468b513234')