blob: 6b4102c503e4e0534238b7f506a939c9940c6c6e (
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
43
44
45
46
47
48
|
# Maintainer: Mike Boiko <mike@boiko.ca>
pkgname=mani
pkgver=0.30.0
pkgrel=3
pkgdesc='A CLI tool that helps you manage multiple repositories'
arch=('x86_64')
url='https://manicli.com'
license=('MIT')
depends=('glibc')
makedepends=('git' 'go')
options=('!debug')
_commit='54df45611770026988052522e20794c1e00d26fb'
source=("$pkgname::git+https://github.com/alajmo/mani.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
build() {
cd "$pkgname"
# set Go flags
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
# run make build
make build
}
package() {
cd "$pkgname"
# Install the binary
install -vDm755 -t "$pkgdir/usr/bin" dist/mani
# Install documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
# Install license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
# Install and compress the man page
install -vDm644 "core/mani.1" "$pkgdir/usr/share/man/man1/mani.1"
gzip "$pkgdir/usr/share/man/man1/mani.1"
}
|