Revert to using pkgver as PACKAGE_VERSION

master
Davi da Silva Böger 8 years ago
parent 4a246d12fc
commit e37914a47d

@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
# Tue Jan 31 19:50:40 UTC 2017
# Tue Jan 31 20:09:33 UTC 2017
pkgbase = bbswitch-dkms-git
pkgdesc = kernel module allowing to switch dedicated graphics card on Optimus laptops, dkms version
pkgver = 0.8.r0.g0c38f97
pkgrel = 3
pkgrel = 4
url = http://github.com/Bumblebee-Project/bbswitch
arch = i686
arch = x86_64

@ -6,7 +6,7 @@
pkgname=bbswitch-dkms-git
_pkgname='bbswitch'
pkgver=0.8.r0.g0c38f97
pkgrel=3
pkgrel=4
pkgdesc="kernel module allowing to switch dedicated graphics card on Optimus laptops, dkms version"
arch=('i686' 'x86_64')
url="http://github.com/Bumblebee-Project/bbswitch"
@ -30,11 +30,10 @@ package() {
cd "${srcdir}/${_pkgname}"
# Exceprt adapted from upstream Makefile.dkms
modver=`awk -F'"' '/define *BBSWITCH_VERSION/{print $2}' < bbswitch.c`
sed -e "s/#MODULE_VERSION#/${modver}/" < "dkms/dkms.conf" > dkms.conf
sed -e "s/#MODULE_VERSION#/${pkgver}/" -i "dkms/dkms.conf"
install -dm755 "${pkgdir}/usr/src/${_pkgname}-${modver}"
install -Dm644 Makefile bbswitch.c dkms.conf "${pkgdir}/usr/src/${_pkgname}-${modver}"
install -dm755 "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
install -Dm644 Makefile bbswitch.c dkms/dkms.conf "${pkgdir}/usr/src/${_pkgname}-${pkgver}"
install -dm755 "${pkgdir}/usr/share/doc/${_pkgname}/"
install -Dm644 NEWS README.md "${pkgdir}/usr/share/doc/${_pkgname}/"

Loading…
Cancel
Save