summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMantas Mikul─Śnas2019-08-26 14:35:03 +0300
committerMantas Mikul─Śnas2019-08-26 14:35:03 +0300
commit757080e2d2a3b0bf328edf763182217bb2d3e4a1 (patch)
treeeaf07c078babb71a21498257d5d79ff9e7c821f7 /PKGBUILD
parentf35de8c481a9e0be16ce17a4396fddcf320a5c2a (diff)
downloadaur-sheepshaver-git.tar.gz
create a DKMS package for sheep_net
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 24 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4fa84a7783c..78c45e2e12e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,15 +1,14 @@
# Maintainer: Eric DeStefano <eric at ericdestefano dot com>
-pkgname=sheepshaver-git
-pkgver=r2604.g143b0827
+pkgbase=sheepshaver-git
+pkgname=(sheepshaver-git sheepnet-dkms-git)
+pkgver=r2608.g01052ca8
pkgrel=2
pkgdesc="An Open Source PowerMac Emulator"
arch=('x86_64')
url="http://sheepshaver.cebix.net"
license=('GPL')
depends=('gtk2' 'sdl' 'vde2')
-provides=("sheepshaver=$pkgver")
-conflicts=("sheepshaver")
source=('git+https://github.com/cebix/macemu'
'SheepShaver.sysctl'
'SheepShaver.desktop'
@@ -39,7 +38,10 @@ build() {
make -j1
}
-package() {
+package_sheepshaver-git() {
+ provides=("sheepshaver=$pkgver")
+ conflicts=("sheepshaver")
+
install -Dm755 macemu/SheepShaver/src/Unix/SheepShaver "$pkgdir"/usr/bin/SheepShaver
install -Dm755 macemu/SheepShaver/src/Unix/SheepShaverGUI "$pkgdir"/usr/bin/SheepShaverGUI
@@ -51,4 +53,21 @@ package() {
install -Dm644 SheepShaver.sysctl "$pkgdir"/etc/sysctl.d/90-SheepShaver.conf
}
+package_sheepnet-dkms-git() {
+ depends=('dkms')
+ provides=("sheepnet-dkms=$pkgver")
+ conflicts=("sheepnet-dkms")
+
+ mkdir -p "$pkgdir"/usr/src
+ cp -rL macemu/SheepShaver/src/Unix/Linux/NetDriver "$pkgdir"/usr/src/sheepnet-$pkgver
+
+ cat > "$pkgdir"/usr/src/sheepnet-$pkgver/dkms.conf <<EOF
+PACKAGE_NAME="sheepnet"
+PACKAGE_VERSION="$pkgver"
+AUTOINSTALL=yes
+BUILT_MODULE_NAME="sheep_net"
+DEST_MODULE_LOCATION="/kernel/net"
+EOF
+}
+
# vim: ts=2:sw=2:et: