first version

This commit is contained in:
vincent 2024-02-26 21:15:40 +01:00
commit b85e06f7c2
3 changed files with 59 additions and 0 deletions

16
.SRCINFO Normal file
View 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
View File

@ -0,0 +1,7 @@
*.[oa]
*.zip
*.gz
*.pkg.*
asustor-platform-driver/
pkg/
src/

36
PKGBUILD Normal file
View 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}/
}