summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2619e6a6dac297731ab4c4a5df039318c676556e (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: Henry Malinowski <malinowski.henry at gmail dot com>
_pkgname=swatchtime
pkgname=swatchtime-git
_reponame="SwatchTime"
pkgver=v0.9.r0.g610666c
pkgrel=1
pkgdesc="displays Swatch Internet Time in a formatted manner"
arch=('any')
url="https://github.com/henry-malinowski/SwatchTime"
license=('MIT')
depends=('python')
source=("git://github.com/henry-malinowski/SwatchTime.git")
sha256sums=('SKIP')

pkgver()
{
    cd "$srcdir/$_reponame"
    git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package()
{
  cd "$srcdir/$_reponame" 
  install -D --mode=0644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -D --mode=0755 "swatchtime.py" "${pkgdir}/usr/bin/${_pkgname}"
  install -D --mode=0644 "swatchtime.1" --target-directory="${pkgdir}/usr/share/man/man1"
}