forked from oggy-/thinkpad-yoga-rotate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
PKGBUILD
38 lines (32 loc) · 1.12 KB
/
PKGBUILD
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
# Maintainer: AdmiralAkber
pkgname='thinkpad-yoga-14-s3-scripts-git'
_gitname='thinkpad-yoga-14-s3-scripts'
pkgver=20150329
pkgrel=2
pkgdesc='A collection of scripts and systemd services for tablet functionality of the ThinkPad Yoga 14 S3'
url="https://github.com/johanneswilm/thinkpad-yoga-14-s3-scripts"
source=('thinkpad-yoga-14-s3-scripts::git+https://github.com/johanneswilm/thinkpad-yoga-14-s3-scripts')
license=('GPL3')
arch=('any')
depends=('xorg-xrandr' 'xorg-xinput' 'xbindkeys' 'kbd' 'systemd' 'gawk')
md5sums=('SKIP')
makedepends=('git')
install=$pkgname.install
pkgver() {
cd "$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd $srcdir/$_gitname
# Install scripts into /opt
mkdir -p "$pkgdir/opt/$_gitname"
## Rotate scripts
cp -r rotate "$pkgdir/opt/$_gitname"
## Backlight script
cp -r backlight "$pkgdir/opt/$_gitname"
# ThinkPad Yoga Systemd Services
mkdir -p "$pkgdir/usr/lib/systemd/system/"
cp systemd/*.service "$pkgdir/usr/lib/systemd/system/"
# Install license
install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$_gitname/LICENSE"
}