diff options
author | orhun | 2020-11-08 03:08:02 +0300 |
---|---|---|
committer | orhun | 2020-11-08 03:08:02 +0300 |
commit | d1fece58c8240af356dd3560730740beff635f3c (patch) | |
tree | d4e0d5cc6849dd5adb99935b3b0d74f9e2dfe371 | |
download | aur-d1fece58c8240af356dd3560730740beff635f3c.tar.gz |
Initial upload: dog-dns-git 0.1.0.r0.g445ed98-1
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0a84dff6bcaa --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = dog-dns-git + pkgdesc = Command-line DNS client (git) + pkgver = 0.1.0.r0.g445ed98 + pkgrel = 1 + url = https://github.com/ogham/dog + arch = x86_64 + license = custom:EUPL + makedepends = cargo + makedepends = git + provides = dog-dns + conflicts = dog-dns + conflicts = dog-dns-bin + source = git+https://github.com/ogham/dog + sha512sums = SKIP + +pkgname = dog-dns-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..949cb19565d3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: orhun <orhunparmaksiz@gmail.com> +# https://github.com/orhun/pkgbuilds + +pkgname=dog-dns-git +_pkgname=dog +pkgver=0.1.0.r0.g445ed98 +pkgrel=1 +pkgdesc="Command-line DNS client (git)" +arch=('x86_64') +url="https://github.com/ogham/dog" +license=('custom:EUPL') +makedepends=('cargo' 'git') +conflicts=("${pkgname%-git}" "${pkgname%-git}-bin") +provides=("${pkgname%-git}") +source=("git+${url}") +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 --all-features +} + +check() { + cd "$_pkgname" + cargo test --release --locked +} + +package() { + cd "$_pkgname" + install -Dm 755 "target/release/$_pkgname" -t "$pkgdir/usr/bin" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$_pkgname" + install -Dm 644 LICENCE -t "$pkgdir/usr/share/licenses/$_pkgname" + install -Dm 644 "completions/$_pkgname.bash" "${pkgdir}/usr/share/bash-completion/completions/$_pkgname" + install -Dm 644 "completions/$_pkgname.fish" -t "${pkgdir}/usr/share/fish/completions" + install -Dm 644 "completions/$_pkgname.zsh" "${pkgdir}/usr/share/zsh/functions/Completion/Linux/_$_pkgname" +} |