blob: f307de9dfa0e588b15c6f330c5943789a666d8bf (
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
|
# Maintainer: Jia Sui <jsfaint at gmail dot com>
pkgname=known_hosts
_pkgname=known_hosts
pkgver=1.0.0.r9.gb8ade13
pkgrel=1
pkgdesc="A simple cli ssh known_hosts manager "
arch=('i686' 'x86_64')
url="https://github.com/markmcconachie/known_hosts"
makedepends=('git' 'cmake')
source=('git+https://github.com/markmcconachie/known_hosts.git')
sha1sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $srcdir/$_pkgname
mkdir build
cd build
cmake ../
make
}
package() {
cd "$srcdir"
# binary
install -Dm755 $_pkgname/build/known_hosts $pkgdir/usr/bin/known_hosts
# license
install -Dm644 $_pkgname/README.md $pkgdir/usr/share/$_pkgname
}
# vim:set ts=2 sw=2 ft=sh et:
|