summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Osvaldo Barrera2016-06-29 06:26:33 -0300
committerHugo Osvaldo Barrera2016-06-29 06:27:29 -0300
commit346e6be2e6c32c3ce0ff34cf0cdcd6b3e3834bad (patch)
treeca9dde3176c107f7ae687f63f03413ce659a91db
parentc798360c5503542f6f7e9e7e29ca36ba638dfe64 (diff)
downloadaur-346e6be2e6c32c3ce0ff34cf0cdcd6b3e3834bad.tar.gz
Make this a metapkg until there's a stable release
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD33
-rw-r--r--mba6x_bl-dkms.conf1
-rw-r--r--mba6x_bl-dkms.install31
-rw-r--r--mba6x_bl.service9
5 files changed, 11 insertions, 80 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1ad7e87cf32..07aa8b35424 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,25 +1,14 @@
# Generated by mksrcinfo v8
-# Wed Mar 30 05:18:05 UTC 2016
+# Wed Jun 29 09:26:09 UTC 2016
pkgbase = mba6x_bl-dkms
pkgdesc = Backlight for mba6x to fix post suspend/resume brightness.
- pkgver = latest
+ pkgver = 0.0
pkgrel = 1
url = https://github.com/patjak/mba6x_bl
- install = mba6x_bl-dkms.install
arch = i686
arch = x86_64
license = GPL2
- depends = linux
- depends = dkms
- depends = linux-headers
- provides = mba6x_bl
- conflicts = mba6x_bl
- source = git+https://github.com/patjak/mba6x_bl.git
- source = mba6x_bl.service
- source = mba6x_bl-dkms.conf
- md5sums = SKIP
- md5sums = ba4c62f65f3a5baeede49db823f08180
- md5sums = 1d04b891c7a387a845a1eac768749c6b
+ depends = mba6x_bl-dkms-git
pkgname = mba6x_bl-dkms
diff --git a/PKGBUILD b/PKGBUILD
index f1bf408a5d7..349d743ecce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,20 @@
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
-# Contributor: Frank Shin <frankshin82@gmail.com>
+#
+# These is no stable upstream release, so this package merely brings in the
+# latest git version.
+#
+# Once there is a stable version, this package will start tracking that.
pkgname=mba6x_bl-dkms
_gitname=mba6x_bl
-pkgver=latest
+pkgver=0.0
pkgrel=1
pkgdesc="Backlight for mba6x to fix post suspend/resume brightness."
url='https://github.com/patjak/mba6x_bl'
arch=('i686' 'x86_64')
license=('GPL2')
-depends=('linux' 'dkms' 'linux-headers')
-install=$pkgname.install
-provides=('mba6x_bl')
-conflicts=('mba6x_bl')
-source=("git+https://github.com/patjak/mba6x_bl.git"
- 'mba6x_bl.service'
- 'mba6x_bl-dkms.conf')
-md5sums=('SKIP'
- 'ba4c62f65f3a5baeede49db823f08180'
- '1d04b891c7a387a845a1eac768749c6b')
-
-pkgver() {
- cd "$srcdir/${_gitname}"
- echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
-}
+depends=('mba6x_bl-dkms-git')
package() {
- cd "${srcdir}/"
- install -Dm 644 mba6x_bl-dkms.conf "${pkgdir}/etc/modules-load.d/mba6x_bl-dkms.conf"
- install -Dm 644 mba6x_bl.service "${pkgdir}//etc/systemd/system/mba6x_bl.service"
-
- cd "${srcdir}/${_gitname}"
- for FILE in Makefile dkms.conf mba6x_bl.c; do
- install -Dm 644 $FILE "${pkgdir}/usr/src/mba6x_bl-$pkgver/$FILE"
- done
+ return
}
diff --git a/mba6x_bl-dkms.conf b/mba6x_bl-dkms.conf
deleted file mode 100644
index e5d1c39a96f..00000000000
--- a/mba6x_bl-dkms.conf
+++ /dev/null
@@ -1 +0,0 @@
-mba6x_bl
diff --git a/mba6x_bl-dkms.install b/mba6x_bl-dkms.install
deleted file mode 100644
index 0793d3706f4..00000000000
--- a/mba6x_bl-dkms.install
+++ /dev/null
@@ -1,31 +0,0 @@
-post_install() {
- dkms_install $1
-}
-
-pre_upgrade() {
- dkms_remove $2
-}
-
-pre_remove() {
- dkms_remove $1
-}
-
-post_upgrade() {
- dkms_install $1
-}
-
-dkms_remove() {
- local line=`dkms status -m mba6x_bl`
- if echo "$line" | grep -E 'added|built|installed'; then
- dkms remove -m mba6x_bl -v ${1%%-*} --all
- fi
- systemctl disable mba6x_bl
-}
-
-dkms_install() {
- dkms install -m mba6x_bl -v ${1%%-*}
- modprobe mba6x_bl
-
- /usr/bin/depmod -a
- systemctl enable mba6x_bl
-}
diff --git a/mba6x_bl.service b/mba6x_bl.service
deleted file mode 100644
index 816c2ee3de3..00000000000
--- a/mba6x_bl.service
+++ /dev/null
@@ -1,9 +0,0 @@
-[Unit]
-Description=Remove and reload mba6x to workaround no brightness bug
-
-[Service]
-ExecStart=/bin/sh -c "modprobe -r mba6x_bl && modprobe mba6x_bl"
-Type=oneshot
-
-[Install]
-WantedBy=multi-user.target