summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2428b5fa4dae5a069949f7af8b631e1b5133105 (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: Raiku <rikunn.rikunn@proton.me>
pkgname=wl-plant
pkgver=1.0
pkgrel=1
url="https://github.com/gitRaiku/plant"
pkgdesc="A suckless wayland daemonless notification utility"
arch=(any)
license=('GPL-3.0')
depends=('wayland' 'wlroots')
makedepends=('make' 'wayland-protocols')
install="${pkgname}.install"
source=("https://github.com/gitRaiku/plant/archive/refs/tags/v$pkgver.tar.gz"
        "https://github.com/gitRaiku/plant/releases/download/v$pkgver/config.h")
sha256sums=('b4e7bf51605e4f16803a2334206d9f1a4225ff310e6646540fcbeb26e6f34b17'
            'SKIP')

prepare() {
  cp config.h plant-$pkgver/src/config.h
}

build() {
  cd $srcdir/plant-$pkgver
  make $MAKEOPTS
}

package() {
  cd "plant-$pkgver"
  install -Dm 0755 bin/plant -t "$pkgdir/usr/bin/"
}

post_install() {
  echo $(cat configure.install)
}