arch/pkg/de-p1st-rotate/PKGBUILD

24 lines
939 B
Bash
Raw Normal View History

2021-06-17 16:25:38 +02:00
# Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=rotate
_reponame=arch
pkgname="de-p1st-$_pkgname"
2021-07-25 12:14:36 +02:00
pkgver=0.1.1
pkgrel=1
2021-06-17 16:25:38 +02:00
pkgdesc="Scripts to automate screen rotation"
arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}"
license=('MIT')
2021-06-17 20:05:36 +02:00
optdepends=('iio-sensor-proxy-git') # iio-sensor-proxy did not work on my Surface Go 2 but the git version dos
2021-06-17 16:25:38 +02:00
makedepends=('git') # to fetch source(s) via git
source=("git+${url}.git")
sha256sums=('SKIP') # 'SKIP' for git sources; Otherwise: autofill using updpkgsums, see https://man.archlinux.org/man/updpkgsums.8.en
package() {
cd "${_reponame}/pkg/${pkgname}"
2021-06-17 19:38:44 +02:00
install -Dm0555 usr/bin/de-p1st-rotate-screen "$pkgdir"/usr/bin/de-p1st-rotate-screen
install -Dm0555 usr/lib/de-p1st-rotate/get-orientation "$pkgdir"/usr/lib/de-p1st-rotate/get-orientation
2021-06-17 20:05:36 +02:00
install -Dm0644 -o0 etc/de-p1st-rotate/config.cfg "$pkgdir"/etc/de-p1st-rotate/config.cfg
2021-06-17 16:25:38 +02:00
}