blob: e4c210a04922f4a9db311f4e3ba55c38c94c7ae0 (
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
34
35
36
37
38
39
40
41
|
# Maintainer: Vidhu Kant Sharma <vidhukant@vidhukant.com>
pkgname=macli-git
_pkgname=macli
pkgver=v1.20.5
pkgrel=1
license=('GPLv3')
pkgdesc='Unofficial CLI-Based MyAnimeList Client'
makedepends=("git" "go>=1.6")
depends=("gnome-keyring")
arch=("i686" "x86_64")
_gourl='vidhukant.com/macli'
url="https://git.${_gourl}"
source=("${_pkgname}::git+${url}")
sha256sums=('SKIP')
provides=("macli")
conflicts=("macli")
pkgver() {
cd "${srcdir}/${_pkgname}"
version=$(git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
echo "${version:1}"
}
build() {
export GOPATH="${srcdir}/go"
cd "${srcdir}/${_pkgname}"
go mod vendor
go build .
go clean -modcache
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm755 -t "${pkgdir}/usr/bin" ./macli
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" ./LICENSE
install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" ./README.md
}
|