blob: eee05d88b883a8f67419be3e2e26085ab1a0ce24 (
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
|
# Maintainer: theguy147
pkgname=mhost-git
pkgver=0.3.0.r25.g6e90de8
pkgrel=1
pkgdesc='A very fast and easy to use DNS lookup utility. (git version)'
arch=('x86_64')
url="https://github.com/lukasprustina/mhost"
license=('MIT' 'Apache')
makedepends=('cargo')
depends=('glibc' 'gcc-libs')
source=("${pkgname}::git+https://github.com/lukaspustina/mhost.git")
sha512sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname}"
cargo build --release --locked
}
package() {
cd "${pkgname}"
install -Dm 755 -t "${pkgdir}/usr/bin" ./target/release/mhost
install -Dm 644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
install -Dm 644 LICENSE-APACHE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE"
}
|