makedeb


pngoptimizer 2.7-6


Optimize PNGs and convert other lossless formats to PNG

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

Commit:


Hash: 4ac7d3bb48202bb8287f807a3433a83d0be21982

Message: Reswitched to Git

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 7b7dbb6..98fa2ac 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,13 +3,13 @@ generated-by = makedeb-makepkg
 pkgbase = pngoptimizer
 	pkgdesc = Optimize PNGs and convert other lossless formats to PNG
 	pkgver = 2.7
-	pkgrel = 4
+	pkgrel = 5
 	url = https://github.com/hadrien-psydk/pngoptimizer
 	arch = x86_64
 	license = GPL
 	makedepends = build-essential
 	makedepends = libgtk-3-dev
-	source = pngoptimizer-2.7.tar.gz::https://github.com/hadrien-psydk/pngoptimizer/archive/v2.7.tar.gz
-	sha256sums = 63c290a80931a3ef2d30e772250769aae298e44903c4466867ff7a3bd41ecf12
+	source = git+https://github.com/hadrien-psydk/pngoptimizer.git#tag=v2.7
+	sha256sums = SKIP
 
 pkgname = pngoptimizer
diff --git a/PKGBUILD b/PKGBUILD
index f3c9233..9abe42a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,22 +2,22 @@
 
 pkgname="pngoptimizer"
 pkgver="2.7"
-pkgrel="4"
+pkgrel="5"
 pkgdesc="Optimize PNGs and convert other lossless formats to PNG"
 arch=('x86_64')
 url="https://github.com/hadrien-psydk/pngoptimizer"
 license=('GPL')
 makedepends=('build-essential' 'libgtk-3-dev')
 
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('63c290a80931a3ef2d30e772250769aae298e44903c4466867ff7a3bd41ecf12')
+source=("git+${url}.git#tag=v${pkgver}")
+sha256sums=('SKIP')
 
 build() {
-    cd ${srcdir}/${pkgname}-${pkgver}
+    cd ${srcdir}/${pkgname}
     make -j$(nproc)
 }
 
 package() {
-    cd ${srcdir}/${pkgname}-${pkgver}
+    cd ${srcdir}/${pkgname}
     make DESTDIR="${pkgdir}" prefix="/usr" install
 }