summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.SRCINFO11
-rw-r--r--PKGBUILD27
2 files changed, 20 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 34ca639a305..af54e305516 100755
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,18 @@
pkgbase = rtv
pkgdesc = Browse Reddit from your terminal
- pkgver = 1.24.0
- pkgrel = 2
+ pkgver = 1.27.0
+ pkgrel = 3
url = https://github.com/michael-lazar/rtv
arch = any
- license = MIT
+ license = custom:MIT
makedepends = python-setuptools
depends = python-beautifulsoup4
depends = python-decorator
depends = python-kitchen
depends = python-six
depends = python-requests
- conflicts = rtv-git
- source = https://github.com/michael-lazar/rtv/archive/v1.24.0.tar.gz
- md5sums = 59bad003b7734192a49de0d9a39eeeb9
+ source = rtv-1.27.0.tar.gz::https://github.com/michael-lazar/rtv/archive/v1.27.0.tar.gz
+ sha256sums = c57a6cbb2525160b6aaa9180aec0293962b6969675f8ac0f2cfacff3cbd00d7c
pkgname = rtv
diff --git a/PKGBUILD b/PKGBUILD
index 5d3a5c38f73..8da6e4f3440 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,21 +1,24 @@
-# Maintainer: John Jenkins twodopeshaggy@gmail.com
-
+# Maintainer: Alad Wenter <alad@archlinux.org>
+# Contributor: John Jenkins twodopeshaggy@gmail.com
pkgname=rtv
-pkgver=1.24.0
-pkgrel=2
+pkgver=1.27.0
+pkgrel=3
pkgdesc="Browse Reddit from your terminal"
arch=('any')
url="https://github.com/michael-lazar/rtv"
-license=('MIT')
-conflicts=('rtv-git')
+license=('custom:MIT')
makedepends=('python-setuptools')
depends=('python-beautifulsoup4' 'python-decorator' 'python-kitchen' 'python-six' 'python-requests')
-source=(https://github.com/michael-lazar/rtv/archive/v$pkgver.tar.gz)
-md5sums=('59bad003b7734192a49de0d9a39eeeb9')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('c57a6cbb2525160b6aaa9180aec0293962b6969675f8ac0f2cfacff3cbd00d7c')
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1
- mkdir -p $pkgdir/usr/share/licenses/$pkgname
- install -m 0644 LICENSE $pkgdir/usr/share/licenses/$pkgname/
+ cd "$pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}