summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69b581c175992e7592a643e91168ad2356fd301f (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
# Maintainer: Takase <takase1121@proton.me>

pkgname=dummy-pm
pkgver=0.2.0
pkgrel=1
pkgdesc="A simple power manager for wlroots-based compositors."
arch=('any')
url="https://github.com/takase1121/dummy-pm"
license=('MIT')
depends=('util-linux' 'bash>=4.0.0' 'swayidle>=1.3.0')
optdepends=('brightnessctl: display brightness support'
            'wlopm: wlroots DPMS support'
            'swaylock: lock screen support')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/takase1121/dummy-pm/archive/v${pkgver}.tar.gz")
sha256sums=('05df50a657ca8009ffcf5bc66be07d82a9242da17d737c3afddc3cc8ce90c0a4')

package() {
  cd "${pkgname}-${pkgver}"

  # install itself
  install -Dm755 dummy-pm "$pkgdir/usr/bin/dummy-pm"

  # default config
  install -Dm644 dummy-pm-config "$pkgdir/usr/share/$pkgname/dummy-pm-config"

  # license
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}