summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72b18a11d7da29256d8416f60fdf5ae19bf4d25b (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: Ildar Sagdejev <specious@gmail.com>

_pkgname=polyglot
pkgname="${_pkgname}-git"
pkgver=r9.ab8f2f5
pkgrel=1
pkgdesc='Translate text to multiple languages simultaneously (latest git)'
arch=('any')
url="https://github.com/specious/${_pkgname}"
license=('ISC')
depends=('bash' 'translate-shell')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
sha1sums=('SKIP')

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

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