makedeb


pg 0.1.3-1


A CLI ProGet client

Click here to go back to the commit logs for pg.

Commit:


Hash: eafccc5738a493735ee94889386576e160a249b8

Message: Fix improper archive name

Diff


diff --git a/.SRCINFO b/.SRCINFO
index dfd0594..85dd72e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
 pkgname = pg
 pkgbase = pg
 pkgdesc = A CLI ProGet client
-pkgrel = 1
+pkgrel = 2
 pkgver = 0.1.0
 url = https://github.com/hwittenborn/proget-cli
 arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 50d8f89..17d1e1e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,25 @@
 # Maintainer: Hunter Wittenborn <hunter@hunterwittenborn.com>
+_pkgname=proget-cli
 pkgname=pg
 pkgver=0.1.0
-pkgrel=1
+pkgrel=2
 pkgdesc='A CLI ProGet client'
 arch=('any')
 makedepends=('cargo')
 license=('GPL-3.0')
-url='https://github.com/hwittenborn/proget-cli'
+url="https://github.com/hwittenborn/${_pkgname}"
 
 source=("${url}/archive/refs/tags/v${pkgver}.tar.gz")
 sha256sums=('SKIP')
 
 build() {
-    cd "${pkgname}-${pkgver}/"
+    cd "${_pkgname}-${pkgver}/"
     cargo build --release
 }
 
 package() {
-    cd "${pkgname}-${pkgver}/"
-    install -Dm 755 target/release/pg "${pkgdir}/usr/bin/pg"
+    cd "${_pkgname}-${pkgver}/"
+    install -Dm 755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
 }
 
 # vim: set sw=4 expandtab: