blob: 5a2aa77e6318057273f7f6cfc9cc3fe7ff3be144 (
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
42
43
44
|
# Maintainer: Andrea <your-email@example.com>
pkgname=rog-helper
pkgver=r17.554d8cb
pkgrel=1
pkgdesc="A TUI for managing ASUS ROG laptops"
arch=('any')
url="https://github.com/itsameandrea/rog-helper"
license=('MIT')
depends=(
'ruby'
'asusctl'
'supergfxctl'
)
makedepends=(
'ruby-bundler'
'git'
)
source=("$pkgname::git+https://github.com/itsameandrea/rog-helper.git")
sha256sums=('SKIP')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$pkgname"
bundle config set --local deployment true
bundle config set --local without development test
bundle install
}
package() {
cd "$pkgname"
install -Dm755 "bin/rog-helper" "$pkgdir/usr/bin/rog-helper"
install -Dm644 "lib/rog_helper.rb" "$pkgdir/usr/lib/ruby/vendor_ruby/rog_helper.rb"
cp -r lib/rog_helper "$pkgdir/usr/lib/ruby/vendor_ruby/"
install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" 2>/dev/null || true
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|