blob: 0e66d62c70ffb30be38bff3bc45fb8b222495acc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Alexandr Boiko <4le34n at gmail dot com>
pkgname=accel-ppp-ipoe-dkms-git
_pkgname=accel-ppp
pkgver=1.12.0_57_gc983d6f
pkgrel=1
pkgdesc='Accel-ppp ipoe kernel module sources'
arch=('i686' 'x86_64')
url='https://github.com/accel-ppp/accel-ppp/'
license=('GPL')
depends=('dkms' 'lua51')
source=("accel-ppp::git+$url"
'dkms.conf')
pkgver() {
cd "$srcdir/${_pkgname%-git}"
printf "%s" "$(git describe --tags | sed 'y/-/_/')"
}
package() {
cd "$srcdir/${_pkgname%-git}"
install -dm755 "$pkgdir/usr/src"
cd drivers
cp -r ipoe "$pkgdir/usr/src/accel-ppp-ipoe-$pkgver"
# Copy dkms.conf
install -Dm0644 "$srcdir/dkms.conf" "$pkgdir/usr/src/accel-ppp-ipoe-$pkgver/dkms.conf"
# Set name and version
sed -e "s/@PKGNAME@/${pkgname}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/accel-ppp-ipoe-${pkgver}/dkms.conf
}
md5sums=('SKIP'
'f363b0f073f88de2a537dd1de0faab8b')
|