summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1c1346a1f6dcca22c6fda5e940d2db07310a301 (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
# Maintainer: Tomasz G─ůsior <tomaszgasior.pl>

__commit="a576155f380612c84bbcd05dcfc56dcb2c34e0ac"

pkgname=markdown_previewer
pkgver=2_${__commit:0:5}
pkgrel=1
pkgdesc='Simple Markdown files previewer.'
arch=('i686' 'x86_64')
url='https://github.com/TomaszGasior/markdown_previewer'
depends=('php' 'zenity')
makedepends=('git')
source=(
	"git+https://github.com/TomaszGasior/$pkgname.git#commit=$__commit"
	"markdown_previewer.desktop"
)
sha256sums=('SKIP' 'SKIP')

build()
{
	cd "$srcdir/$pkgname"
	php "prepare_application.php"
}

package()
{
	mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/share/applications"

	cp "$srcdir/$pkgname/markdown_previewer" "$pkgdir/usr/bin/"
	cp "$srcdir/markdown_previewer.desktop" "$pkgdir/usr/share/applications/"
}