first version
This commit is contained in:
commit
b85e06f7c2
16
.SRCINFO
Normal file
16
.SRCINFO
Normal file
@ -0,0 +1,16 @@
|
||||
pkgbase = asustor-platform-driver
|
||||
pkgdesc = asustor nas driver
|
||||
pkgver = 49.20f84ae
|
||||
pkgrel = 1
|
||||
url = https://github.com/mafredri/asustor-platform-driver/
|
||||
arch = x86_64
|
||||
license = GPL
|
||||
makedepends = git
|
||||
depends = dkms
|
||||
provides = asustor-platform-driver
|
||||
conflicts = it87-frankcrawford-dkms-git
|
||||
conflicts = it87-dkms-git
|
||||
source = asustor-platform-driver::git+https://github.com/vincentDcmps/asustor-platform-driver.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = asustor-platform-driver
|
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
*.[oa]
|
||||
*.zip
|
||||
*.gz
|
||||
*.pkg.*
|
||||
asustor-platform-driver/
|
||||
pkg/
|
||||
src/
|
36
PKGBUILD
Normal file
36
PKGBUILD
Normal file
@ -0,0 +1,36 @@
|
||||
# Maintainer: Daniel Hillenbrand <codeworkx at bbqlinux dot org>
|
||||
|
||||
_pkgbase=asustor-platform-driver
|
||||
pkgname=asustor-platform-driver
|
||||
pkgver=49.20f84ae
|
||||
pkgrel=1
|
||||
pkgdesc="asustor nas driver"
|
||||
arch=('x86_64')
|
||||
driverversion="v0.1"
|
||||
url="https://github.com/mafredri/asustor-platform-driver/"
|
||||
license=('GPL')
|
||||
depends=('dkms')
|
||||
makedepends=('git')
|
||||
provides=('asustor-platform-driver')
|
||||
conflicts=('it87-frankcrawford-dkms-git' 'it87-dkms-git')
|
||||
|
||||
source=("$_pkgbase::git+https://github.com/vincentDcmps/asustor-platform-driver.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_pkgbase"
|
||||
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$_pkgbase"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$_pkgbase"
|
||||
sed '/@modprobe/d' -i Makefile
|
||||
sed '/@dkms/d' -i Makefile
|
||||
make dkms DKMS_ROOT_PATH_ASUSTOR="${pkgdir}"/usr/src/asustor-${driverversion}/ DKMS_ROOT_PATH_ASUSTOR_IT87="${pkgdir}"/usr/src/asustor-it87-${driverversion}/ DKMS_ROOT_PATH_ASUSTOR_GPIO_IT87="${pkgdir}"/usr/src/asustor-gpio-it87-${driverversion}/
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user