summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7dd3d0a7f62fc9926aab8788e3166e3148f68b8e (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: Lassebq <lassebq dot mine at gmail dot com>
pkgname=wlr-autorotate-git
pkgver=0.1.0
pkgrel=1
pkgdesc="Automatically changes screen orientation in wlroots based compositors based on the state of accelerometer"
arch=(x86_64)
url="https://github.com/Lassebq/wlr-autorotate"
license=('MIT')
depends=('iio-sensor-proxy' 'glib2' 'wayland')
makedepends=('cmake'
             'gcc'
             'git'
             'make'
             )
source=("$pkgname::git+https://github.com/Lassebq/wlr-autorotate.git")
sha256sums=('SKIP')

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

package() {
  cd "$srcdir/$pkgname"
  install -Dm755 build/wlr-autorotate "$pkgdir/usr/bin/wlr-autorotate"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}