diff options
author | Fabian Bornschein | 2020-09-11 19:12:31 +0200 |
---|---|---|
committer | Fabian Bornschein | 2020-09-11 19:12:31 +0200 |
commit | 169ca581c83f396482c89f4dfca0ab7156c0dae0 (patch) | |
tree | 54f6bdb6dbf102e48f0de3530411a4ff7d78ea9e | |
parent | 329ee50c60ec13065b0a653b13f3b9d12c29949d (diff) | |
download | aur-169ca581c83f396482c89f4dfca0ab7156c0dae0.tar.gz |
repo link update, smaller changes to the build
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 21 | ||||
-rw-r--r-- | archlinux.install (renamed from game-devices-udev.install) | 19 |
3 files changed, 18 insertions, 30 deletions
@@ -1,15 +1,15 @@ pkgbase = game-devices-udev pkgdesc = Udev rules for controllers pkgver = 0.7.9 - pkgrel = 0 - url = https://gitlab.com/Fabish/game-devices-udev - install = game-devices-udev.install + pkgrel = 1 + url = https://gitlab.com/fabis_cafe/game-devices-udev + install = archlinux.install arch = any license = MIT makedepends = lsb-release depends = udev depends = lsb-release - source = https://gitlab.com/Fabish/game-devices-udev/-/archive/0.7.9/game-devices-udev-0.7.9.zip + source = https://gitlab.com/fabis_cafe/game-devices-udev/-/archive/0.7.9/game-devices-udev-0.7.9.zip source = uinput.conf sha512sums = ec48291810c9e219708aa03507ca70b34b0e378f9fda678e086cc964b3bffd1234c1105ee704ca645840adfb7b7553c494000756500641a6c1b58d35fbf1f898 sha512sums = a9b069ed121ffeee887e0583d8cb46035ecf1fa90a26a4ecb3aa11ff03178b2b08621f6676db6b2350f290694c04aabcf36f2ce3e0813a76dde9a33555edb112 @@ -1,31 +1,30 @@ # Maintainer: Fabian Bornschein <plusfabi(At)gmail(Dot)com> pkgname=game-devices-udev pkgver=0.7.9 -pkgrel=0 +pkgrel=1 pkgdesc="Udev rules for controllers" -url='https://gitlab.com/Fabish/game-devices-udev' +url='https://gitlab.com/fabis_cafe/game-devices-udev' arch=('any') license=('MIT') depends=('udev' 'lsb-release') makedepends=('lsb-release') -install=${pkgname}.install -source=("https://gitlab.com/Fabish/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.zip" +install=$(/usr/bin/tail -n 1 /usr/lib/os-release | /usr/bin/cut -d= -f2).install +source=("https://gitlab.com/fabis_cafe/${pkgname}/-/archive/${pkgver}/${pkgname}-${pkgver}.zip" "uinput.conf") sha512sums=('ec48291810c9e219708aa03507ca70b34b0e378f9fda678e086cc964b3bffd1234c1105ee704ca645840adfb7b7553c494000756500641a6c1b58d35fbf1f898' 'a9b069ed121ffeee887e0583d8cb46035ecf1fa90a26a4ecb3aa11ff03178b2b08621f6676db6b2350f290694c04aabcf36f2ce3e0813a76dde9a33555edb112') -if [[ $(lsb_release -is) != "Arch" ]] ; then exit 1; fi package() { # install license install -Dm 644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - # install udev rules - install -dm 755 "${pkgdir}/usr/lib/udev/rules.d" - cp "${srcdir}/${pkgname}-${pkgver}"/*.rules \ - "${pkgdir}/usr/lib/udev/rules.d/" + # install udev rules + install -dm 755 "${pkgdir}/usr/lib/udev/rules.d" + cp "${srcdir}/${pkgname}-${pkgver}"/*.rules \ + "${pkgdir}/usr/lib/udev/rules.d/" # start uinput at boot - install -Dm 644 "${srcdir}/uinput.conf" \ - "${pkgdir}/usr/lib/modules-load.d/uinput.conf" + install -Dm 644 "${srcdir}/uinput.conf" \ + "${pkgdir}/usr/lib/modules-load.d/uinput.conf" } diff --git a/game-devices-udev.install b/archlinux.install index cad59ceda0e2..3c8ea78ab9ee 100644 --- a/game-devices-udev.install +++ b/archlinux.install @@ -1,7 +1,3 @@ -pre_install() { - if [[ $(/usr/bin/lsb_release -is) != "Arch" ]] ; then exit 1; fi -} - post_install() { ## Load uinput if it is not loaded already /usr/bin/grep -q 'uinput' /proc/modules @@ -9,28 +5,21 @@ post_install() { then /usr/bin/modprobe uinput fi - + ## reload udev rules /usr/bin/udevadm control --reload-rules printf "\nThanks for using my pkg š\n\n" } -pre_upgrade() { - if [[ $(/usr/bin/lsb_release -is) != "Arch" ]] ; then exit 1; fi -} - post_upgrade() { - ## reload udev rules - /usr/bin/udevadm control --reload-rules + ## reload udev rules + /usr/bin/udevadm control --reload-rules printf "\nThanks for still using my pkg š\n\n" } -#pre_remove() { -#} - post_remove() { ## reload udev rules - /usr/bin/udevadm control --reload-rules + /usr/bin/udevadm control --reload-rules printf "\nYou need to reboot your system now" printf "\nšļøšļø bye bye š\n\n" } |