blob: ca495b0b4e4a62a5ad9d7c1587e5ffc3da43520a (
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
|
# Maintainer: Simon Doppler (dopsi) <dop.simon@gmail.com>
pkgname=mdl-git
pkgver=r123.16f55e6
pkgrel=1
epoch=1
pkgdesc='MarkDown Less is a Markdown displayer (Git version)'
arch=('x86' 'x86_64')
url='http://github.com/dopsi/mdl'
license=('MIT')
provides=('mdl')
conflicts=('mdl')
depends=('boost-libs')
source=('git://github.com/dopsi/mdl')
sha1sums=('SKIP')
_gitname=mdl
pkgver() {
cd $_gitname
printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_gitname"
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "$_gitname/build"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir/usr/share/licenses/$pkgname"
cp ../LICENSE "$pkgdir/usr/share/licenses/$pkgname"
}
# vim:ts=4:sw=4:expandtab
|