summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 804514001b6cf5db8fc40f1fbc77f91cd3c6e46c (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: Dmitry Mozzherin <dmozzherin@gmail.com>

pkgname=muro
pkgver=0.1.2
pkgrel=2
pkgdesc='Wallpaper with blurred or averaged background for X11'
arch=('x86_64')
url="https://codeberg.org/dimus/$pkgname"
license=('MIT')
makedepends=(
  'go'
  'make'
)
depends=(
  'feh'
  'xorg-xrandr'
)
provides=("$pkgname")
conflicts=("$pkgname")
source=("https://codeberg.org/dimus/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('75fad5e4357e8c893060e8f89e5c79aefb4c48b9c8f2efe6a02ec69a831e943e')

prepare() {
  cd "$pkgname"
  mkdir -p build/
}

build() {
  cd "$pkgname"
  make build
}

check() {
  cd "$pkgname"
  go test ./...
}

package() {
  install -Dm644 "$srcdir/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
  install -Dm755 "$srcdir/$pkgname/out/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
}