blob: 2324e5cda1aedcb68970165581c65399b36e5ac7 (
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
|
# Maintainer: Lance Chen <cyen0312@gmail.com>
pkgname=snowcrash
pkgver=1.0.9.r2.gd93978d
pkgrel=1
pkgdesc="API Blueprint Parser"
arch=('i686' 'x86_64')
url="https://github.com/apiaryio/snowcrash"
license=('MIT')
makedepends=('git')
source=("git+https://github.com/apiaryio/snowcrash")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
cd "$srcdir/$pkgname"
git submodule update --init --recursive
}
build() {
cd "$srcdir/$pkgname"
./configure
make
}
check() {
cd "$srcdir/$pkgname"
./configure
make test
}
package() {
cd "$srcdir/$pkgname"
install -m 755 -D "bin/snowcrash" "$pkgdir/usr/bin/snowcrash"
}
|