summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fe895c730847451fade729a77949a18c7f47e887 (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
# Maintainer: Kyrill Belomenov <kyrill.belomenov>

_pkgname="rock-paper-scissors"
pkgname="${_pkgname}-git"
pkgver=r47.97718f4
pkgrel=1
pkgdesc="an rock paper scissor game for linux"
arch=('any')
url="https://github.com/kybe236/rock-paper-scissor"
license=('MIT')
depends=("python" "python-requests")
makedepends=('git')
source=('git+https://github.com/kybe236/rock-paper-scissor.git')
md5sums=('SKIP')


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


package() {
  cd "rock-paper-scissor"
  install -Dvm755 "main.py" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dvm644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${_pkgname}-git/LICENSE"
}