blob: f64ab20bb59c1706f04cf20afc5a5bd7c0709b48 (
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
34
35
36
37
|
# Maintainer: Derek J. Clark <derekjohn.clark@gmail.com>
_pkgbase=ayaneo-platform
pkgname=ayaneo-platform-dkms-git
pkgver=v0.3.3.r0.g54832bd
pkgrel=1
pkgdesc="Linux Driver for Ayaneo x86 handhelds"
arch=('x86_64')
url="https://github.com/ShadowBlip/ayaneo-platform"
license=('GPL')
conflicts=('ayaneo-platform')
depends=('dkms')
makedepends=('git')
source=("$_pkgbase::git+https://github.com/ShadowBlip/ayaneo-platform.git"
"dkms.conf")
sha256sums=(
'SKIP'
'9143c5abacaeffb5389dc9d1b95562c806c9399b1213aa939c7086a19d937e0d'
)
pkgver() {
cd "$srcdir/${_pkgbase}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "$srcdir/${_pkgbase}"
install -d "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
cp -r ${srcdir}/${_pkgbase}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
install -Dm644 ${srcdir}/dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
sed -e "s/@_PKGBASE@/${_pkgbase}/" \
-e "s/@PKGVER@/${pkgver}/" \
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf
}
|