summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14daf5d4e8226d4a93ea9efa2d5a25eb50bb1da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Parham Alvani <parham.alvani@gmail.com>

pkgname=scitopdf-git
pkgver="r113.91b7463"
pkgrel=1
pkgdesc="bash script to quickly fetch, download and open scientific papers from Sci-Hub's database"
arch=(x86_64)
url="https://github.com/dougy147/scitopdf"
license=(GPL3)
conflicts=()
provides=('scitopdf')
source=("${pkgname}::git+${url}.git")
sha256sums=('SKIP')

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

package() {
	install -D -m755 "$srcdir/$pkgname/bin/scitopdf" "$pkgdir/usr/bin/scitopdf"
	install -D -m644 "$srcdir/$pkgname/scitopdf.1" "$pkgdir/usr/share/man/man1/scitopdf.1"
}