makedeb


bencodetools 1.0.1-0


A collection of tools for manipulating bencoded data.

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

Commit:


Hash: 4f858e79662092f7476c6846e63ed2d9518377bc

Message: Initial mpr release

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 58ccd7e..4012059 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,11 @@
-pkgbase = bencodetools-git
-	pkgdesc = A collection of tools for manipulating bencoded data.
-	pkgver = r214.384d78d
-	pkgrel = 1
-	url = https://gitlab.com/heikkiorsila/bencodetools
-	arch = x86_64
-	license = custom
-	makedepends = git
-	provides = bencodetools
-	conflicts = bencodetools
-	source = git+https://gitlab.com/heikkiorsila/bencodetools.git
-	md5sums = SKIP
-
-pkgname = bencodetools-git
+generated-by = makedeb
+pkgname = bencodetools
+pkgbase = bencodetools
+pkgdesc = A collection of tools for manipulating bencoded data.
+pkgrel = 0
+pkgver = 1.0.1
+url = https://gitlab.com/heikkiorsila/bencodetools
+arch = amd64
+license = custom
+source = https://gitlab.com/heikkiorsila/bencodetools/-/archive/v1.0.1/bencodetools-v1.0.1.tar.gz
+b2sums = b260fe9cd9fd9c1ccdad7fe785b8b0d5cff689b16e14657c103717b729530c9b3d6ee5b12937fe7815a6a0bf495534ca23463712cebaaae53dc4ad15c9b83460
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..982fd6d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+bencodetools*
+pkg/
+src/
diff --git a/PKGBUILD b/PKGBUILD
index 8f1d2f9..ceeeed9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,32 +1,24 @@
-# Maintainer: grimi
-pkgname=bencodetools-git
-pkgver=r214.384d78d
-pkgrel=1
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: grimi (AUR)
+pkgname=bencodetools
+pkgver=1.0.1
+pkgrel=0
 pkgdesc="A collection of tools for manipulating bencoded data."
-arch=("x86_64")
+arch=("amd64")
 url="https://gitlab.com/heikkiorsila/bencodetools"
 license=("custom")
-makedepends=("git")
-provides=("${pkgname%-git}")
-conflicts=("${pkgname%-git}")
-source=("git+https://gitlab.com/heikkiorsila/bencodetools.git")
-md5sums=("SKIP")
-
-
-pkgver() {
-   cd "${pkgname%-git}"
-   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
-}
+source=("https://gitlab.com/heikkiorsila/bencodetools/-/archive/v${pkgver}/bencodetools-v${pkgver}.tar.gz")
+b2sums=('b260fe9cd9fd9c1ccdad7fe785b8b0d5cff689b16e14657c103717b729530c9b3d6ee5b12937fe7815a6a0bf495534ca23463712cebaaae53dc4ad15c9b83460')
 
 build() {
-  cd ${pkgname%-git}
-  ./configure --prefix=/usr --lib-path=/usr/lib --package-prefix="${pkgdir}" --without-python
-  make
+  cd ${pkgname}-v${pkgver}
+  ./configure --prefix=/usr  --lib-path=/usr/lib --package-prefix="${pkgdir}" --without-python
+  make -j $(nproc)
 }
 
 package() {
-  cd ${pkgname%-git}
+  cd ${pkgname}-v${pkgver}
   make install
-  install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname%-git}/LICENSE
+  install -Dm644 LICENSE "${pkgdir}"/usr/share/doc/${pkgname}/LICENSE
 }