summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd2100cef7945facd87cf02204619c3c80c869ba (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
# Maintainer: carterprince <carteraprince@gmail.com>

pkgname=libby-git
pkgver=r30.f253e26
pkgrel=1
pkgdesc="a simple cli tool to download books from Library Genesis"
arch=(any)
url=https://github.com/carterprince/libby
license=(GPL3)
depends=(python-requests python-tqdm python-beautifulsoup4)
optdepends=('neomutt' 'rofi' 'calibre')
makedepends=(git)
provides=(libby)
conflicts=(libby)
source=($pkgname::git+https://github.com/carterprince/libby)
md5sums=(SKIP)

pkgver() {
    cd "$srcdir"/$pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$srcdir"/$pkgname
    make PREFIX=/usr DESTDIR="$pkgdir" install
}