summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandr Boiko2016-07-29 17:39:37 +1100
committerAlexandr Boiko2016-07-29 17:39:37 +1100
commit096c68113236f8bb08bdb1e7841f3d9032361142 (patch)
treedc0fa010fd246a9383d3558975c7eb43fe8bcfdf
parent4207ecc4f05f7e5750197cc5b8b2292b6b5865d0 (diff)
downloadaur-096c68113236f8bb08bdb1e7841f3d9032361142.tar.gz
PKGBUILD: improvements, auto generate version package to dkms.conf
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD15
-rw-r--r--dkms.conf4
3 files changed, 14 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6074f8f66ea..966fe7ba83d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = accel-ppp-vlanmon-dkms-git
pkgdesc = Accel-ppp vlan_mon kernel module sources
- pkgver = r1350.d682a0a
- pkgrel = 2
+ pkgver = r1376.810d234
+ pkgrel = 1
url = http://sourceforge.net/apps/trac/accel-ppp/
arch = i686
arch = x86_64
@@ -12,7 +12,7 @@ pkgbase = accel-ppp-vlanmon-dkms-git
source = accel-ppp::git+git://git.code.sf.net/p/accel-ppp/code
source = dkms.conf
md5sums = SKIP
- md5sums = cad83c31b06eaf122d1ce4bc495f0fe6
+ md5sums = ecb9e73f9243d773949cab8f2de36fc9
pkgname = accel-ppp-vlanmon-dkms-git
diff --git a/PKGBUILD b/PKGBUILD
index 683dee37479..a0ffe33ad2b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=accel-ppp-vlanmon-dkms-git
_pkgname=accel-ppp
-pkgver=r1350.d682a0a
-pkgrel=2
+pkgver=r1376.810d234
+pkgrel=1
pkgdesc='Accel-ppp vlan_mon kernel module sources'
arch=('i686' 'x86_64')
url='http://sourceforge.net/apps/trac/accel-ppp/'
@@ -13,9 +13,6 @@ conflicts=('accel-ppp-ipoe-dkms')
source=('accel-ppp::git+git://git.code.sf.net/p/accel-ppp/code'
'dkms.conf')
-md5sums=('SKIP'
- 'cad83c31b06eaf122d1ce4bc495f0fe6')
-
pkgver() {
cd "$srcdir/${_pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
@@ -26,7 +23,13 @@ package() {
install -dm755 "$pkgdir/usr/lib/modules-load.d"
cd drivers
cp -r vlan_mon "$pkgdir/usr/src/accel-ppp-vlanmon-$pkgver"
+ # Copy dkms.conf
install -Dm0644 "$srcdir/dkms.conf" "$pkgdir/usr/src/accel-ppp-vlanmon-$pkgver/dkms.conf"
+ # Set name and version
+ sed -e "s/@PKGNAME@/${pkgname}/" \
+ -e "s/@PKGVER@/${pkgver}/" \
+ -i "${pkgdir}"/usr/src/accel-ppp-vlanmon-${pkgver}/dkms.conf
}
-# vim:set ts=4 sw=4 et:
+md5sums=('SKIP'
+ 'ecb9e73f9243d773949cab8f2de36fc9')
diff --git a/dkms.conf b/dkms.conf
index f48eac6eb17..32e5fe4278a 100644
--- a/dkms.conf
+++ b/dkms.conf
@@ -1,5 +1,5 @@
-PACKAGE_NAME="accel-ppp-vlanmon-dkms-git"
-PACKAGE_VERSION=r1344.f5a97ed
+PACKAGE_NAME=@PKGNAME@
+PACKAGE_VERSION=@PKGVER@
REMAKE_INITRD=no
AUTOINSTALL=yes