blob: 5206f801e5ba5dee2b75bb4e09e721288032f692 (
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
37
38
39
40
41
|
# Maintainer: Matthew Mueller <2disbetter@gmail.com>
pkgname=fw12rotate-git
pkgver=r17.ba2cdd7
pkgrel=2
options=('!debug')
pkgdesc="Framework 12 rotation application for Hyprland on Arch‑based systems"
arch=('x86_64')
url="https://github.com/2disbetter/FW12Rotate"
license=('MIT')
depends=('bash' 'inotify-tools' 'iio-sensor-proxy')
optdepends=('hyprland: required for intended use')
makedepends=('git' 'gcc')
source=("git+${url}.git")
sha256sums=('SKIP')
install=fw12rotate-git.install
# --------------------------------------------------------------------
# Generate a version string based on the git commit count / hash
pkgver() {
cd FW12Rotate
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
# --------------------------------------------------------------------
build() {
cd FW12Rotate
# Adjust flags if the project needs them (e.g. -std=c++17, -Wall, etc.)
g++ fw12rotate.cpp -o FW12Rotate
}
# --------------------------------------------------------------------
package() {
cd FW12Rotate
# Install the compiled binary
install -Dm755 FW12Rotate "${pkgdir}/usr/local/bin/FW12Rotate"
# Install the helper script (assumes the file exists in the repo)
install -Dm755 toggle-rotation.sh "${pkgdir}/usr/share/${pkgname}/toggle-rotation.sh"
install -Dm644 "${srcdir}/FW12Rotate/fw12rotate-git.install" \
"${pkgdir}/usr/share/licenses/${pkgname}/fw12rotate-git.install"
}
|