summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d7250d8e665b4fa49ea7e7c0642cc2513fe7380 (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
42
43
44
45
46
47
48
49
# Maintainer: Fronkles McFranko <mrelfranko@disroot.org>
pkgname=eww-git
_pkgname=eww
pkgver=dd3c50f
pkgrel=1
epoch=
pkgdesc="ElKowar's wacky widgets"
arch=('any')
url="https://github.com/elkowar/eww"
license=('GPL')
groups=()
depends=()
makedepends=("cargo" "git")
checkdepends=()
optdepends=()
provides=()
conflicts=("eww")
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/elkowar/eww")
noextract=()
md5sums=("SKIP")
validpgpkeys=()

pkgver() {
    cd $_pkgname
    printf "%s" "$(git describe --always --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "$_pkgname"
    cargo build
}

check() {
	cd "$_pkgname"
    cargo check
}

package() {
	cd "$_pkgname"
    cargo install --path . --root "$pkgdir/usr"

    cd "$pkgdir/usr"
    rm .crates2.json .crates.toml
}