blob: 51b2e9d1b7f6251aa7d23a3cc59205f12b001e65 (
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
|
# Maintainer: Adrian Wersching <dev@awersching.com>
_pkgname=wedder
pkgname="${_pkgname}-git"
pkgdesc="Current weather info for status bars like polybar"
pkgver=1.4.0.r0.g799bac9
pkgrel=2
arch=("any")
options=('!debug')
url="https://github.com/awersching/wedder"
source=("git+https://github.com/awersching/wedder.git")
license=("MIT")
makedepends=("git" "rust")
conflicts=("wedder")
md5sums=("SKIP")
pkgver() {
cd "${_pkgname}"
git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${_pkgname}"
make build
}
package() {
cd "${_pkgname}"
install -Dm755 target/release/$_pkgname "$pkgdir/usr/bin/$_pkgname"
install -Dm644 examples/wedder.toml "${pkgdir}/etc/${_pkgname}/wedder.toml"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|