blob: 1c45a25085679a999455501d3da2e7f7d3caaf42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
_pkgname=minq-nhentai
pkgname="${_pkgname}-git"
pkgver=r51.a7dcc6d8820f85f72d52f87e9bd5c97512c213aa
pkgrel=1
epoch=
pkgdesc='Browse hnehtai in your terminal. Full image resolution in supported terminals. Beta version automatically caches all network requests so that hentai can be enjoyed during an ISP outage.'
arch=(any)
url="https://github.com/kuche1/${_pkgname}.git"
license=('GPL')
depends=(python python-beautifulsoup4 viu)
makedepends=(git)
optdepends=('wezterm: an example terminal that supports full image resolution'
'python-minq-caching-thing-git: needed for the beta version')
provides=("${_pkgname}")
source=("git+$url")
md5sums=("SKIP")
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse HEAD)"
}
package() {
cd "${_pkgname}"
mkdir -p "${pkgdir}/opt/${pkgname}"
cp -rf * "${pkgdir}/opt/${pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
mkdir -p "${pkgdir}/usr/bin/"
ln -s "/opt/${pkgname}/minq_nhentai.py" "${pkgdir}/usr/bin/${_pkgname}"
ln -s "/opt/${pkgname}/minq_nhentai_beta.py" "${pkgdir}/usr/bin/${_pkgname}-beta"
}
|