Date: Saturday, July 2, 2022 @ 22:55:42 Author: heftig Revision: 1243707
archrelease: copy trunk to community-testing-x86_64 Added: vhba-module/repos/community-testing-x86_64/ vhba-module/repos/community-testing-x86_64/PKGBUILD (from rev 1243701, vhba-module/trunk/PKGBUILD) vhba-module/repos/community-testing-x86_64/dkms.conf (from rev 1243702, vhba-module/trunk/dkms.conf) -----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ dkms.conf | 9 +++++++++ 2 files changed, 58 insertions(+) Copied: vhba-module/repos/community-testing-x86_64/PKGBUILD (from rev 1243701, vhba-module/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2022-07-02 22:55:42 UTC (rev 1243707) @@ -0,0 +1,49 @@ +# Maintainer: Jan Alexander Steffens (heftig) <hef...@archlinux.org> +# Contributor: Ray Rashif <sc...@archlinux.org> +# Contributor: Mateusz Herych <heni...@gmail.com> +# Contributor: Charles Lindsay <char...@chaoslizard.org> + +pkgbase=vhba-module +pkgname=(vhba-module vhba-module-dkms) +pkgver=20211218 +pkgrel=46 +pkgdesc="Kernel module that emulates SCSI devices" +url="https://cdemu.sourceforge.io/" +arch=(x86_64) +license=(GPL) +makedepends=('linux-headers') +source=("https://downloads.sourceforge.net/cdemu/$pkgbase-$pkgver.tar.xz" + dkms.conf) +sha256sums=('72c5a8c1c452805e4cef8cafefcecc2d25ce197ae4c67383082802e5adcd77b6' + '8cab0ebb4fee72069d63616b0983f105b98d1261e72e9bef5509a6e60bc382a7') + +prepare() { + cd $pkgbase-$pkgver +} + +build() { + cd $pkgbase-$pkgver + make KERNELRELEASE="$(</usr/src/linux/version)" +} + +package_vhba-module() { + depends=(linux) + provides=(VHBA-MODULE) + + local extradir="/usr/lib/modules/$(</usr/src/linux/version)/extramodules" + install -Dt "$pkgdir$extradir" -m644 $pkgbase-$pkgver/*.ko + + find "$pkgdir" -name '*.ko' -exec strip --strip-debug {} + + find "$pkgdir" -name '*.ko' -exec xz {} + +} + +package_vhba-module-dkms() { + depends=(dkms) + provides=(VHBA-MODULE) + conflicts=(vhba-module) + + install -Dt "$pkgdir/usr/src/$pkgbase-$pkgver" -m644 \ + dkms.conf $pkgbase-$pkgver/{Makefile,vhba.c} +} + +# vim:set ts=2 sw=2 et: Copied: vhba-module/repos/community-testing-x86_64/dkms.conf (from rev 1243702, vhba-module/trunk/dkms.conf) =================================================================== --- community-testing-x86_64/dkms.conf (rev 0) +++ community-testing-x86_64/dkms.conf 2022-07-02 22:55:42 UTC (rev 1243707) @@ -0,0 +1,9 @@ +PACKAGE_NAME="vhba-module" +PACKAGE_VERSION="#MODULE_VERSION#" +AUTOINSTALL="yes" + +MAKE[0]="make KERNELRELEASE=$kernelver" +CLEAN="make clean" + +BUILT_MODULE_NAME[0]="vhba" +DEST_MODULE_LOCATION[0]="/kernel/drivers/scsi"