[arch-commits] Commit in (dog dog/repos dog/trunk dog/trunk/PKGBUILD)
Kpcyrd
kpcyrd at archlinux.org
Wed Nov 25 20:14:32 UTC 2020
Date: Wednesday, November 25, 2020 @ 20:14:32
Author: kpcyrd
Revision: 761275
addpkg: dog 0.1.0-2
Added:
dog/
dog/repos/
dog/trunk/
dog/trunk/PKGBUILD
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Added: dog/trunk/PKGBUILD
===================================================================
--- dog/trunk/PKGBUILD (rev 0)
+++ dog/trunk/PKGBUILD 2020-11-25 20:14:32 UTC (rev 761275)
@@ -0,0 +1,39 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+# Contributor: orhun <orhunparmaksiz at gmail.com>
+
+pkgname=dog
+pkgver=0.1.0
+pkgrel=2
+pkgdesc='Command-line DNS client like dig'
+url='https://github.com/ogham/dog'
+arch=('x86_64')
+license=('custom:EUPL')
+replaces=('dog-dns')
+depends=('openssl')
+makedepends=('cargo')
+source=(https://github.com/ogham/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+b2sums=('7ea52027e73deb6db6cb67b89063cddd507246256b3ca93479a634ff6696ab6961f004da8272b4c535067868603d8218b44c3696e34b5126371a9e0d5fc36058')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ cargo build --release --locked
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ cargo test --release --locked
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
+
+ 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/site-functions/_${pkgname}"
+
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list