makedeb
Browse Reddit from your terminal (rtv fork)
Click here to go back to the commit logs for tuir.
Hash: e5a9d219c1e6039e687a640bf04419a326648b52
Message: Initial mpr release
diff --git a/.SRCINFO b/.SRCINFO
index 0527dc4..17a6397 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,22 @@
-pkgbase = tuir
- pkgdesc = Browse Reddit from your terminal
- pkgver = 1.29.0
- pkgrel = 2
- url = https://gitlab.com/ajak/tuir/
- arch = any
- license = MIT
- makedepends = git
- makedepends = python-setuptools
- depends = python-beautifulsoup4
- depends = python-decorator
- depends = python-kitchen
- depends = python-six
- depends = python-requests
- source = git+https://gitlab.com/ajak/tuir.git#tag=v1.29.0
- md5sums = SKIP
-
+generated-by = makedeb
pkgname = tuir
-
+pkgbase = tuir
+pkgdesc = Browse Reddit from your terminal (rtv fork)
+pkgrel = 0
+pkgver = 1.29.0
+url = https://gitlab.com/ajak/tuir/
+arch = all
+depends = python3-bs4>=4.5.1
+depends = python3-decorator
+depends = python3-kitchen
+depends = python3-six
+depends = python3-requests
+license = MIT
+makedepends = python3-setuptools
+optdepends = xsel: copy to clipboard
+optdepends = xclip: copy to clipboard
+source = https://gitlab.com/ajak/tuir/-/archive/v1.29.0/tuir-v1.29.0.tar.gz
+b2sums = 8bd2c046a350804eaa02f83ab71b8c3e838411dc5b78929b873f95808dd09cd3b2634a377747a8094e896f02875f3af75e239a1cd7713a295bc573b0aa79b605
+makedepends = python3-setuptools
+optdepends = xsel: copy to clipboard
+optdepends = xclip: copy to clipboard
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dca3db8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+pkg/
+src/
+tuir*
diff --git a/PKGBUILD b/PKGBUILD
index 9fc162e..af22d62 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,24 +1,31 @@
-# Maintainer: Frank Vanderham <twelve dot eighty at gmail dot com>
-# Contributor: Sascha Appel <sascha.appel@gmail.com>
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: Frank Vanderham (AUR) <twelve dot eighty at gmail dot com>
+# Contributor: Sascha Appel (AUR) <sascha.appel@gmail.com>
pkgname=tuir
pkgver=1.29.0
-pkgrel=2
-pkgdesc="Browse Reddit from your terminal"
-arch=('any')
+pkgrel=0
+pkgdesc="Browse Reddit from your terminal (rtv fork)"
+arch=('all')
url="https://gitlab.com/ajak/tuir/"
license=('MIT')
-depends=('python-beautifulsoup4' 'python-decorator' 'python-kitchen' 'python-six' 'python-requests')
-makedepends=('git' 'python-setuptools')
-source=("git+https://gitlab.com/ajak/tuir.git#tag=v$pkgver")
-md5sums=('SKIP')
+depends=('python3-bs4>=4.5.1' 'python3-decorator' 'python3-kitchen' 'python3-six' 'python3-requests')
+optdepends=('xsel: copy to clipboard' 'xclip: copy to clipboard')
+makedepends=('python3-setuptools')
+source=("https://gitlab.com/ajak/tuir/-/archive/v$pkgver/tuir-v$pkgver.tar.gz")
+b2sums=('8bd2c046a350804eaa02f83ab71b8c3e838411dc5b78929b873f95808dd09cd3b2634a377747a8094e896f02875f3af75e239a1cd7713a295bc573b0aa79b605')
build() {
- cd "$pkgname"
- python setup.py build
+ cd "tuir-v$pkgver"
+ python3 setup.py build
}
package() {
- cd "$pkgname"
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
+ cd "tuir-v$pkgver"
+ python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build --install-layout deb
+ install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/$pkgname/license"
+ install -Dm644 "AUTHORS.rst" "$pkgdir/usr/share/doc/$pkgname/authors"
+ install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
+ install -Dm644 "CHANGELOG.rst" "$pkgdir/usr/share/doc/$pkgname/changelog"
+ gzip "$pkgdir/usr/share/doc/$pkgname/changelog"
+}