summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f33971dc1417ebee145119d865c4f3a6a807be7 (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: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname=gogextract
pkgname=${_pkgname}-git
pkgver=r2.6601b32
pkgrel=2
pkgdesc='Unpack GOG Linux installers'
arch=('any')
url='https://github.com/Yepoleb/gogextract'
license=('MIT')
depends=('python')
makedepends=('git')
provides=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
  install -Dm755 "${_pkgname}/${_pkgname}.py" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dm644 "${_pkgname}/README.md" "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
  install -Dm644 "${_pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}

# vim: ts=2 sw=2 et: