makedeb
Browse Reddit from your terminal (rtv fork)
Viewing /PKGBUILD
.
Click here to go back to the Git tree for tuir.
# 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=0
pkgdesc="Browse Reddit from your terminal (rtv fork)"
arch=('all')
url="https://gitlab.com/ajak/tuir/"
license=('MIT')
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 "tuir-v$pkgver"
python3 setup.py build
}
package() {
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"
}