makedeb


yadm 3.2.2-2


Yet Another Dotfiles Manager

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

Commit:


Hash: daa47642855dd0dc5f32191aba7e54e0eba84885

Message: Give downloaded files unique names

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 2036858..2a97a0a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,7 +2,7 @@ generated-by = makedeb
 pkgname = yadm
 pkgbase = yadm
 pkgdesc = Yet Another Dotfiles Manager
-pkgrel = 1
+pkgrel = 2
 pkgver = 3.2.2
 url = https://github.com/TheLocehiliosan/yadm
 arch = amd64
@@ -11,8 +11,8 @@ arch = i386
 depends = git
 license = GPL-3
 makedepends = gzip
-source = https://raw.githubusercontent.com/TheLocehiliosan/yadm/3.2.2/yadm
-source = https://raw.githubusercontent.com/TheLocehiliosan/yadm/3.2.2/yadm.1
+source = yadm-3.2.2::https://raw.githubusercontent.com/TheLocehiliosan/yadm/3.2.2/yadm
+source = yadm.1-3.2.2::https://raw.githubusercontent.com/TheLocehiliosan/yadm/3.2.2/yadm.1
 sha256sums = dd6a9a9f6442a1b8c742952132413c68ce55c077c5fd49f85a3aa219a33b6198
 sha256sums = f5362f76e2a1f16255022090fc20d3745aa3add5429eea1f4b24dc6b0bcfc802
 makedepends = gzip
diff --git a/.gitignore b/.gitignore
index 4fcc65f..b295411 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,5 @@
 src/
 pkg/
-/yadm
-/yadm.1
+/yadm-*
+/yadm.1-*
 *.deb
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..27b86cd
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,7 @@
+all: .SRCINFO
+
+clean:
+	rm -rf src/ pkg/ yadm-* yadm.1-* *.deb .SRCINFO
+
+.SRCINFO: PKGBUILD
+	makedeb --print-srcinfo > .SRCINFO
diff --git a/PKGBUILD b/PKGBUILD
index 57c2222..3977941 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=yadm
 pkgver=3.2.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Yet Another Dotfiles Manager'
 arch=(amd64 armhf i386)
 depends=(git)
@@ -12,8 +12,8 @@ license=(GPL-3)
 url='https://github.com/TheLocehiliosan/yadm'
 
 source=(
-  "https://raw.githubusercontent.com/TheLocehiliosan/yadm/${pkgver}/yadm"
-  "https://raw.githubusercontent.com/TheLocehiliosan/yadm/${pkgver}/yadm.1"
+  "yadm-${pkgver}::https://raw.githubusercontent.com/TheLocehiliosan/yadm/${pkgver}/yadm"
+  "yadm.1-${pkgver}::https://raw.githubusercontent.com/TheLocehiliosan/yadm/${pkgver}/yadm.1"
 )
 sha256sums=(
   'dd6a9a9f6442a1b8c742952132413c68ce55c077c5fd49f85a3aa219a33b6198'
@@ -21,7 +21,7 @@ sha256sums=(
 )
 
 package() {
-    install -D "$srcdir/yadm" "$pkgdir/usr/bin/yadm"
-    install -D "$srcdir/yadm.1" "$pkgdir/usr/share/man/man1/yadm.1"
-    gzip "$pkgdir/usr/share/man/man1/yadm.1"
+    install -D "${srcdir}/yadm-${pkgver}" "${pkgdir}/usr/bin/yadm"
+    install -D "${srcdir}/yadm.1-${pkgver}" "${pkgdir}/usr/share/man/man1/yadm.1"
+    gzip "${pkgdir}/usr/share/man/man1/yadm.1"
 }