summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab9e29ebfc0e9e14abc29d2a871b29f28b7fc8e3 (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
# Maintainer: Frank Seifferth <frankseifferth@posteo.net>

pkgname=pdsite-git
_pkgname=pdsite
pkgver=latest
pkgrel=1
pkgdesc="Pandoc-backed static site generator shell script with precompiled binary dependencies."
arch=('any')
url="https://github.com/GordStephen/pdsite"
depends=('pandoc' 'tree')
makedepends=('git')
optdepends=('webfs')
source=("$pkgname::git+https://github.com/GordStephen/pdsite" "binlink")
md5sums=('SKIP' 'SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
	echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
    mkdir -p "$pkgdir/usr/share/pdsite"
	cp -r $pkgname/* "$pkgdir/usr/share/pdsite/"
	cp -r $pkgname/.pdsite.yml.default "$pkgdir/usr/share/pdsite/"
    install -D -m 755 "$srcdir/binlink" "$pkgdir/usr/bin/pdsite"
}