summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-27 04:05:39 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-27 04:05:39 -0300
commit3ebcfb32e8e278e2c7f7a1cb76e2b2aabef22ec9 (patch)
tree4b7236b68af505a9e121cd5e9ca37071435588b5
parent4657f4aae1bcdbf0db781029517e9a13de30ec79 (diff)
bbswitch-parabola: fixing pkg
-rw-r--r--libre/bbswitch-parabola/PKGBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/libre/bbswitch-parabola/PKGBUILD b/libre/bbswitch-parabola/PKGBUILD
index 209f58cec..78bc5314d 100644
--- a/libre/bbswitch-parabola/PKGBUILD
+++ b/libre/bbswitch-parabola/PKGBUILD
@@ -10,13 +10,13 @@ _basekernel=3.16
_kernelname=
_pkgname=bbswitch
-pkgname=${_pkgname}-parabola${_kernelname}
+pkgname=${_pkgname}${_kernelname}-parabola
pkgver=0.8
+pkgrel=15.2
_extramodules=extramodules-${_basekernel}${_kernelname}
-pkgrel=15.1
pkgdesc="Kernel module allowing to switch dedicated graphics card on Optimus laptops (built for the linux-libre${_kernelname} kernel package)"
arch=('i686' 'x86_64' 'mips64el')
-url="http://github.com/Bumblebee-Project/bbswitch"
+url="http://github.com/Bumblebee-Project/${_pkgname}"
license=('GPL')
# Generic (you shouldn't have to modify any of these variables)
@@ -37,7 +37,7 @@ build() {
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
- make KDIR=/lib/modules/${_kernver}/build
+ i make KDIR=/lib/modules/${_kernver}/build
}
package() {
@@ -46,9 +46,9 @@ package() {
# Set the correct extramodules directory for install
cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
true && install=${install}.pkg
- sed -i "s/^_EXTRAMODULES=$/_EXTRAMODULES="${_extramodules}"/" "${startdir}/${install}"
+ sed -i "s/^_EXTRAMODULES=.*/_EXTRAMODULES="${_extramodules}"/" "${startdir}/${install}"
# Actually install
- install -Dm644 bbswitch.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/bbswitch.ko
- gzip "${pkgdir}/usr/lib/modules/${_extramodules}/bbswitch.ko"
+ install -Dm644 ${_pkgname}.ko "${pkgdir}"/usr/lib/modules/${_extramodules}/${_pkgname}.ko
+ gzip "${pkgdir}/usr/lib/modules/${_extramodules}/${_pkgname}.ko"
}