summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 29690599a348700ab6819c79655268772c819002 (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
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Thomas Zervogiannis <tzervo@gmail.com>
# Contributor: Patrick Palka <patrick@parcs.ath.cx>

pkgname=cliweather-git
pkgver=1.0.r2.g55c51f8
pkgrel=1
pkgdesc="Simple CLI for Google's weather API"
url="https://github.com/AaronFoltz/cliweather"
arch=('any')
license=('WTFPL')
depends=('python2')
makedepends=('git')
source=($pkgname::git://github.com/AaronFoltz/cliweather)
md5sums=('SKIP')

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

prepare() {
  cd $pkgname
  sed -i "s|python[ \t]*$|python2|" cliweather
}

package() {
  cd $pkgname
  install -Dm755 cliweather "$pkgdir/usr/bin/cliweather"
  install -Dm644 README.md "$pkgdir/usr/share/cliweather/README.md"
}