blob: 697e070148ca94739e99a85a8fb16217e520adb4 (
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
|
pkgname=panrun-git
pkgver=r14.2e08db5
pkgrel=1
pkgdesc='Script that looks at the YAML metadata in a markdown file and runs pandoc for you.'
arch=('i686' 'x86_64')
url='https://github.com/mb21/panrun'
license=('MIT')
depends=('ruby' 'pandoc')
makedepends=('git')
source=('git+https://github.com/mb21/panrun')
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "$pkgname"
install -D -m775 panrun "$pkgdir/usr/bin/panrun"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|