blob: 8de0a924c270dcb4f28ab7a042f5cffe7f829b81 (
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
|
pkgname=miniss
pkgver=0.0.2.r1.g7ad0621
pkgrel=1
pkgdesc='Displays a list of open listening sockets. It is a minimal alternative to ss or netstat.'
arch=('x86_64' 'aarch64')
url='https://github.com/noraj/miniss'
license=('MIT')
depends=()
makedepends=('git' 'crystal' 'shards')
source=("git+https://github.com/noraj/$pkgname.git")
sha512sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $pkgname
shards install --production
shards build --production --release --no-debug
}
package() {
cd $pkgname
install -Dm 755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" docs/*.md *.md
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|