blob: a76b7b70f5512c87ddddebadaa328fbea3e357ca (
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
33
34
35
36
37
38
39
40
41
|
# Maintainer: 2ion <dev@2ion.de>
pkgname=forecast-git
pkgver=0.5.0
pkgrel=3
pkgdesc="Query weather forecasts from forecast.io"
arch=('i686' 'x86_64')
url="https://github.com/2ion/forecast"
license=('GPL3')
depends=('json-c' 'curl' 'libconfig' 'ncurses' 'openssl' 'lz4' 'bash-completion')
makedepends=('autoconf' 'automake' 'make' 'pkg-config')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('forecast::git+https://github.com/2ion/forecast.git#branch=master')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --tags | sed 's/-/.r/;s/-/./')"
}
build() {
cd "$srcdir/${pkgname%-git}"
autoreconf -f -i -s
# Remove --with-bash-completion-dir if you do not want to install Bash
# completion.
./configure --prefix=/usr --with-bash-completion-dir
make
}
check() {
cd "$srcdir/${pkgname%-git}"
make -k check
}
package() {
cd "$srcdir/${pkgname%-git}"
make DESTDIR="$pkgdir/" install
}
|