makedeb


hyfetch 1.0.7-3


Neofetch with LGBTQ pride flags.

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

Commit:


Hash: 9abfcb47488491a1b1e97384df463aa68c7564ef

Message: Check for new version automatically

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 679f2ee..c0faf95 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
 pkgname = hyfetch
 pkgbase = hyfetch
 pkgdesc = Neofetch with LGBTQ pride flags.
-pkgrel = 2
+pkgrel = 3
 pkgver = 1.0.7
 url = https://github.com/hykilpikonna/hyfetch
 arch = any
@@ -11,6 +11,4 @@ depends = python3-setuptools
 depends = python3-typing-extensions
 license = MIT
 makedepends = git
-source = hyfetch::git+https://github.com/hykilpikonna/hyfetch.git#tag=1.0.7
-md5sums = SKIP
 makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index 64dbb2e..3ff2019 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,31 @@
 # Maintainer: Menci <huanghaorui301@gmail.com>
 # Contributor: Aleksana QWQ <me@aleksana.moe>
 
+_repo="hykilpikonna/hyfetch"
 pkgname=hyfetch
 pkgver=1.0.7
-pkgrel=2
+pkgrel=3
 pkgdesc="Neofetch with LGBTQ pride flags."
 arch=('any')
 url='https://github.com/hykilpikonna/hyfetch'
 license=('MIT')
 depends=('python3' 'python3-setuptools' 'python3-typing-extensions')
 makedepends=('git')
-source=("$pkgname::git+$url.git#tag=$pkgver")
-md5sums=('SKIP')
+
+prepare() {
+  git clone "$url" "${srcdir}/${pkgname}" --recursive
+  cd "${srcdir}/${pkgname}"
+  git checkout "$(git describe --tags --abbrev=0)"
+}
+
+pkgver() {
+  cd "${srcdir}/${pkgname}"
+  git describe --tags --abbrev=0
+}
 
 build() {
   cd ${pkgname}
+  git checkout "$pkgver"
   python3 setup.py build
 }