blob: 082860c36b3c80121d4e1f8de7d7e12bed24a518 (
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
|
# Maintainer: Jonas Hvid <mail@johv.dk>
pkgname=muwrap-git
pkgver=r19.228a0b2
pkgrel=1
pkgdesc="Text word wrapping utility for the command line"
arch=('any')
url="https://github.com/c2d7fa/muwrap"
license=('MIT')
makedepends=('git' 'nim')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('muwrap::git+https://github.com/c2d7fa/muwrap.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/${pkgname%-git}"
nim compile -d:release --opt:size --passL:-s main.nim
}
check() {
cd "$srcdir/${pkgname%-git}"
nim compile --run test.nim
}
package() {
cd "$srcdir/${pkgname%-git}"
mkdir -p "$pkgdir/usr/bin"
cp main "$pkgdir/usr/bin/muwrap"
}
|