Added install

This commit is contained in:
Aqeel Akber
2015-01-04 02:12:03 +11:00
parent 9d831026b7
commit 0754f7992c
3 changed files with 21 additions and 1 deletions
+3 -1
View File
@@ -3,7 +3,7 @@
pkgname='thinkpad-yoga-scripts-git'
_gitname='thinkpad-yoga-scripts'
pkgver=20150103
pkgrel=1
pkgrel=2
pkgdesc='A collection of scripts and systemd services for tablet functionality of the ThinkPad Yoga'
url="https://github.com/admiralakber/thinkpad-yoga-scripts"
source=('thinkpad-yoga-scripts::git+https://github.com/admiralakber/thinkpad-yoga-scripts')
@@ -16,6 +16,8 @@ optdepends=(
)
md5sums=('SKIP')
makedepends=('git')
install=$pkgname.install
pkgver() {
cd "$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+2
View File
@@ -8,6 +8,8 @@ ExecStart=/usr/bin/bash /opt/thinkpad-yoga-scripts/tablet/tablet-mode.sh
KillMode=process
Environment="DISPLAY=:0"
Type=forking
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
+16
View File
@@ -0,0 +1,16 @@
_note_services(){
echo '(Re)start services now!'
echo ''
echo 'To enable starting of services at startup run:'
echo '----------------------------------------------'
echo 'systemctl enable wacom-proximity@<username>.service'
echo 'systemctl enable yoga-rotate@<username>.service'
echo 'systemctl enable yoga-tablet.service'
echo ''
echo 'Where <username> is your login username'
post_install(){
_note_services
post_upgrade(){
_note_services