archpackaging

PKGBUILDs
git clone https://git.awy.one/archpackaging
Log | Files | Refs

PKGBUILD (662B) - View raw


 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
pkgname=wlr-dpms
pkgver=r22.b6a4aa8
pkgrel=1
pkgdesc="change output power modes in wlroots compositors"
arch=('x86_64')
url="https://sr.ht/~dsemy/wlr-dpms/"
license=('MIT')
depends=('wayland')
makedepends=('git')
provides=("$pkgname")
conflicts=("${pkgname%-git}" $pkgname)
source=('git+https://git.sr.ht/~dsemy/wlr-dpms')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

package() {
  cd "$srcdir/$pkgname"
  make PREFIX=/usr DESTDIR="$pkgdir/" install
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}