diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-11-25 00:48:56 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-11-25 00:48:56 +0100 |
commit | 423025a4468072e708f006722396bf0fc589e8fb (patch) | |
tree | ff395630d984abe20bedba3a295744a57a45047b | |
parent | derp (diff) | |
download | aur-packages-423025a4468072e708f006722396bf0fc589e8fb.tar.gz aur-packages-423025a4468072e708f006722396bf0fc589e8fb.tar.bz2 aur-packages-423025a4468072e708f006722396bf0fc589e8fb.tar.xz |
m + systemd support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rwxr-xr-x | qtsixa/PKGBUILD | 19 | ||||
-rw-r--r-- | qtsixa/sixad.service | 11 |
2 files changed, 24 insertions, 6 deletions
diff --git a/qtsixa/PKGBUILD b/qtsixa/PKGBUILD index 233b3bf..fbbbeb6 100755 --- a/qtsixa/PKGBUILD +++ b/qtsixa/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Mattias Andrée <maandree@operamail.com> pkgname=qtsixa pkgver=1.5.1 -pkgrel=7 +pkgrel=8 pkgdesc="An utility to configure and use sixaxis controller via bluetooth." url="http://sourceforge.net/projects/qtsixa/" arch=('i686' 'x86_64' 'ppc') @@ -13,11 +13,13 @@ makedepends=('patch') source=(http://downloads.sourceforge.net/qtsixa/QtSixA-"$pkgver"-src.tar.gz sixad-init.patch sixad-bin.patch - sixad-shared-h.patch) + sixad-shared-h.patch + sixad.service) md5sums=('d61bef5d737367aeddd57a6bc11da52a' 'a8c7585f628ac5b2eafeb735e3eab28b' '0496d5e8c16b4519042bd024ad07b32d' - 'f7ed53be82bc4148b9a35cd565eb6ebe') + 'f7ed53be82bc4148b9a35cd565eb6ebe' + '7d885a478cdf4dca1c1b724a91bcfdaf') build() { # patch for sixad daemon echo "Patching sixad..." @@ -53,12 +55,17 @@ mkdir -p \ # $pkgdir/usr/share/qtsixa/lang/ \ # $pkgdir/usr/share/doc/qtsixa/ \ + +##systemd +mkdir -p $pkgdir/usr/lib/systemd/system/ +install -m 644 $srcdir/sixad.service $pkgdir/usr/lib/systemd/system/ + cd qtsixa ## Install files - install -m 655 qtsixa $pkgdir/usr/bin/ - install -m 655 sixad-lq $pkgdir/usr/bin/ - install -m 655 sixad-notify $pkgdir/usr/bin/ + install -m 755 qtsixa $pkgdir/usr/bin/ + install -m 755 sixad-lq $pkgdir/usr/bin/ + install -m 755 sixad-notify $pkgdir/usr/bin/ # install -m 644 manual/* $pkgdir/usr/share/doc/qtsixa/manual/ install -m 644 game-profiles/* $pkgdir/usr/share/qtsixa/game-profiles/ install -m 644 gui/*.py $pkgdir/usr/share/qtsixa/gui/ diff --git a/qtsixa/sixad.service b/qtsixa/sixad.service new file mode 100644 index 0000000..2dc59c0 --- /dev/null +++ b/qtsixa/sixad.service @@ -0,0 +1,11 @@ +[Unit] +Description=SixAxis daemon +After=bluetooth.target + +[Service] +Type=simple +ExecStart=/usr/bin/sixad --start +ExecStop=/usr/bin/sixad --stop + +[Install] +WantedBy=multi-user.target |