[arch-commits] Commit in hostess/trunk (PKGBUILD)

Christian Rebischke shibumi at archlinux.org
Sun Feb 21 01:56:23 UTC 2021


    Date: Sunday, February 21, 2021 @ 01:56:23
  Author: shibumi
Revision: 867535

upgpkg: hostess 0.5.2-2

Modified:
  hostess/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-21 01:47:43 UTC (rev 867534)
+++ PKGBUILD	2021-02-21 01:56:23 UTC (rev 867535)
@@ -2,27 +2,28 @@
 
 pkgname=hostess
 pkgver=0.5.2
-pkgrel=1
+pkgrel=2
 pkgdesc="An idempotent command-line utility for managing your /etc/hosts file."
 url="https://github.com/cbednarski/hostess"
 arch=("x86_64")
-license=("MIT")
+license=('MIT')
+depends=('glibc')
 makedepends=("go")
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/cbednarski/hostess/archive/v${pkgver}.tar.gz")
-sha512sums=('SKIP')
+sha512sums=('47c81318cdb1c62c4112612e3e93cb3a171a8daf007e123212ba459efdf73b7dbc14871ee07e9e69af37750f2eb74c4d852c6c7c252788248698b762587638dc')
 
 build() {
-  cd "${pkgname}-${_pkgver}"
+  cd "${pkgname}-${pkgver}"
   export CGO_CPPFLAGS="${CPPFLAGS}"
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_CXXFLAGS="${CXXFLAGS}"
   export CGO_LDFLAGS="${LDFLAGS}"
   export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
-  go build -ldflags "-linkmode=external"
+  go build -ldflags "-linkmode=external" -o "${pkgname}-bin"
 }
 
 check() {
-  cd "${pkgname}-${_pkgver}"
+  cd "${pkgname}-${pkgver}"
   export CGO_CPPFLAGS="${CPPFLAGS}"
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_CXXFLAGS="${CXXFLAGS}"
@@ -31,6 +32,6 @@
 }
 
 package() {
-  cd "${pkgname}-${_pkgver}"
-  install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
+  cd "${pkgname}-${pkgver}"
+  install -Dm755 "${pkgname}-bin" "${pkgdir}/usr/bin/${pkgname}"
 }



More information about the arch-commits mailing list