[arch-commits] Commit in dog/repos (community-x86_64 community-x86_64/PKGBUILD)

Kpcyrd kpcyrd at archlinux.org
Wed Nov 25 20:15:48 UTC 2020


    Date: Wednesday, November 25, 2020 @ 20:15:48
  Author: kpcyrd
Revision: 761279

archrelease: copy trunk to community-x86_64

Added:
  dog/repos/community-x86_64/
  dog/repos/community-x86_64/PKGBUILD
    (from rev 761277, dog/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: dog/repos/community-x86_64/PKGBUILD (from rev 761277, dog/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-11-25 20:15:48 UTC (rev 761279)
@@ -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