summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e1d6de4b90d5757b239d80719c24008c54751d29 (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
# Maintainer: reimu <r2hkri@gmail.com>
pkgname=swayblocks
pkgver=0.0.2
pkgrel=1
pkgdesc="another block manager for i3bar/swaybar"
arch=("i686" "x86_64")
url="https://github.com/rei2hu/$pkgname"
license=("GPL")
conflicts=("$pkgname")
provides=("$pkgname")
depends=("elixir")
makedepends=("elixir")
optdepends=(
  "acpi: for battery script",
  "brightnessctl: for brightness script",
  "cmus: for cmus script",
  "alsa-utils: for volume script")
source=("git+$url")
md5sums=("SKIP")

build() {
  cd "$srcdir/$pkgname"
  make create
  make build
}

package() {
  mkdir -p "$pkgdir/usr/bin" && mv "$srcdir/$pkgname/swayblocks" "$pkgdir/usr/bin"
}