makedeb


mangadesk 0.7.8-1


Terminal client for MangaDex

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

Commit:


Hash: f325de5b3ee6c1f349db8c702bcac310dc742da2

Message: Switched to Git

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 6bfe4de..ebbdec3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,13 +3,13 @@ generated-by = makedeb-makepkg
 pkgbase = mangadesk
 	pkgdesc = Terminal client for MangaDex
 	pkgver = 0.7.5
-	pkgrel = 1
+	pkgrel = 2
 	url = https://github.com/darylhjd/mangadesk
 	arch = x86_64
 	license = MIT
 	makedepends = golang-go
 	depends = libc6-dev
-	source = https://github.com/darylhjd/mangadesk/archive/refs/tags/v0.7.5.tar.gz
-	sha512sums = aaf874d566f6114625d2f936ddfc30e5765517c292d9d9d47f00ccd6b0ff2670ef8ec113dbe019666b926a4d9e1341a0259f76cef2e64c731d85677f599598aa
+	source = git+https://github.com/darylhjd/mangadesk.git#tag=v0.7.5
+	sha512sums = SKIP
 
 pkgname = mangadesk
diff --git a/PKGBUILD b/PKGBUILD
index ccd0164..24bc02a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,9 +2,9 @@
 
 # AUR Maintainer: Amaan Hashmi-Ubhi <amaanhub at protonmail dot com>
 
-pkgname=mangadesk
-pkgver=0.7.5
-pkgrel=1
+pkgname="mangadesk"
+pkgver="0.7.5"
+pkgrel="2"
 pkgdesc='Terminal client for MangaDex'
 arch=('x86_64')
 url="https://github.com/darylhjd/mangadesk"
@@ -12,16 +12,16 @@ license=('MIT')
 # according to namcap, this is needed
 depends=('libc6-dev')
 makedepends=('golang-go')
-source=("$url/archive/refs/tags/v$pkgver.tar.gz")
-sha512sums=('aaf874d566f6114625d2f936ddfc30e5765517c292d9d9d47f00ccd6b0ff2670ef8ec113dbe019666b926a4d9e1341a0259f76cef2e64c731d85677f599598aa')
+source=("git+${url}.git#tag=v${pkgver}")
+sha512sums=('SKIP')
 
 prepare(){
-  cd "$pkgname-$pkgver"
+  cd "${pkgname}"
   mkdir -p build/
 }
 
 build() {
-  cd "$pkgname-$pkgver"
+  cd "${pkgname}"
   export CGO_CPPFLAGS="${CPPFLAGS}"
   export CGO_CFLAGS="${CFLAGS}"
   export CGO_CXXFLAGS="${CXXFLAGS}"
@@ -32,6 +32,6 @@ build() {
 }
 
 package() {
-  cd "$pkgname-$pkgver"
-  install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname
+  cd "${pkgname}"
+  install -Dm755 build/${pkgname} "${pkgdir}"/usr/bin/${pkgname}
 }