summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 806eef19e90a5e4829a529938398e4f00f9447cc (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
# Maintainer: Josh Mak <jmak2015@gmail.com>
# Co-Maintainer: N.Pranav Krishna <npranav7619@gmail.com>
pkgname=mya-git
pkgver=r134.587fa4f
pkgrel=1
pkgdesc="A CLI tool for fetching data from MyAnimeList"
arch=('x86_64')
url="https://github.com/jmakhack/myanimelist-cli/tree/master"
license=('MIT')
depends=('libcurl-compat' 'json-c' 'libbsd')
makedepends=('git' 'gcc' 'curl')
source=("mya-git::git+https://github.com/jmakhack/myanimelist-cli.git")
md5sums=('SKIP')

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

build(){
	cd "$pkgname"
	make	
}
package(){
	cd "$pkgname"
	install -Dm755 "./bin/mya" "$pkgdir/usr/bin/mya"
	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname"
}