summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXorg2017-04-26 22:19:27 +0200
committerXorg2017-04-26 22:19:35 +0200
commita3a31caab64d97ec0ea7807a7a9cc15cf2860073 (patch)
tree8c19763115c51e1de29a5f196fcab1ad06b64753
parente40a7ded32807c97d916e4ed141f3942f9ab71ae (diff)
downloadaur-a3a31caab64d97ec0ea7807a7a9cc15cf2860073.tar.gz
Do a split package (darling-git + darling-mach-dkms-git)
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD37
-rw-r--r--dkms.conf9
4 files changed, 53 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3bd8da39a32..a27fc8788c8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,8 @@
# Generated by mksrcinfo v8
-# Thu Mar 30 17:01:17 UTC 2017
+# Wed Apr 26 20:19:28 UTC 2017
pkgbase = darling-git
pkgdesc = A Darwin/OS X emulation layer for Linux
- pkgver = r1756.2958f4f2
+ pkgver = r1861.099fdc03
pkgrel = 1
url = http://www.darlinghq.org
install = darling-git.install
@@ -15,7 +15,6 @@ pkgbase = darling-git
makedepends = bison
makedepends = flex
makedepends = binutils>=2.28
- depends = darling-mach-dkms-git
depends = xz
depends = fuse
depends = libxml2
@@ -36,7 +35,9 @@ pkgbase = darling-git
depends = libunwind
options = !buildflags
source = git+https://github.com/darlinghq/darling.git
+ source = dkms.conf
md5sums = SKIP
+ md5sums = 2a499e6cc4a31323d82a56a2c6ccab0d
depends_x86_64 = lib32-clang
depends_x86_64 = lib32-bzip2
depends_x86_64 = lib32-systemd
@@ -44,4 +45,12 @@ pkgbase = darling-git
makedepends_x86_64 = gcc-multilib
pkgname = darling-git
+ depends = darling-mach-dkms-git
+
+pkgname = darling-mach-dkms-git
+ depends = dkms
+ optdepends = linux-headers: build modules against the Arch kernel
+ optdepends = linux-lts-headers: build modules against the LTS kernel
+ optdepends = linux-zen-headers: build modules against the ZEN kernel
+ optdepends = linux-grsec-headers: build modules against the GRSEC kernel
diff --git a/.gitignore b/.gitignore
index e439b10eb6e..4645d2b89a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
!.SRCINFO
!PKGBUILD
!darling-git.install
+!dkms.conf
diff --git a/PKGBUILD b/PKGBUILD
index 31fd8fb5bc7..889bbaecd7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
# Maintainer: X0rg
_gitname=darling
-pkgname=$_gitname-git
-pkgver=r1756.2958f4f2
+pkgbase=$_gitname-git
+pkgname=('darling-git' 'darling-mach-dkms-git')
+pkgver=r1861.099fdc03
pkgrel=1
pkgdesc="A Darwin/OS X emulation layer for Linux"
arch=('x86_64') # Can only be built on x86_64 systems
@@ -10,13 +11,15 @@ url="http://www.darlinghq.org"
license=('GPL3')
install=$pkgname.install
groups=('darling-git')
-depends=('darling-mach-dkms-git' 'xz' 'fuse' 'libxml2' 'icu' 'openssl' 'bzip2' 'zlib' 'libsystemd'
+depends=('xz' 'fuse' 'libxml2' 'icu' 'openssl' 'bzip2' 'zlib' 'libsystemd'
'wget' 'curl' 'sqlite' 'ruby' 'sed' 'libarchive' 'file' 'python' 'gawk' 'libunwind') # namcap complains about them
depends_x86_64=('lib32-clang' 'lib32-bzip2' 'lib32-systemd' 'lib32-libxslt')
makedepends=('git' 'cmake' 'clang' 'bison' 'flex' 'binutils>=2.28')
makedepends_x86_64=('gcc-multilib')
-source=('git+https://github.com/darlinghq/darling.git')
-md5sums=('SKIP')
+source=('git+https://github.com/darlinghq/darling.git'
+ 'dkms.conf')
+md5sums=('SKIP'
+ '2a499e6cc4a31323d82a56a2c6ccab0d')
options=('!buildflags')
pkgver() {
@@ -45,10 +48,32 @@ build() {
cmake .. -DCMAKE_TOOLCHAIN_FILE=../Toolchain.cmake -DCMAKE_INSTALL_PREFIX=/usr
msg2 "Run 'make'..."
make
+ msg2 "Run 'make lkm'..."
+ make lkm
}
-package() {
+package_darling-git() {
+ depends=('darling-mach-dkms-git')
cd "$srcdir/$_gitname/build"
make DESTDIR="$pkgdir" install
install -Dvm755 "$srcdir/$_gitname/src/setup-ld-so.sh" "$pkgdir/usr/bin/darling-setup-ld-so"
}
+
+package_darling-mach-dkms-git() {
+ depends=('dkms')
+ optdepends=('linux-headers: build modules against the Arch kernel'
+ 'linux-lts-headers: build modules against the LTS kernel'
+ 'linux-zen-headers: build modules against the ZEN kernel'
+ 'linux-grsec-headers: build modules against the GRSEC kernel')
+ _srcdest="$pkgdir/usr/src/darling-mach-$pkgver"
+
+ msg2 "Install module sources for DKMS..."
+ install -dm755 $(dirname "$_srcdest")
+ cp -r "$srcdir/$_gitname/src/lkm" "$_srcdest"
+ cp -r "$srcdir/$_gitname/build/src/lkm" "$_srcdest/migdir"
+
+ msg2 "Set configuration for DKMS..."
+ install -Dm644 "$srcdir/dkms.conf" "$_srcdest"
+ sed -i "s|@PKGVER@|$pkgver|g" "$_srcdest/dkms.conf"
+ sed -i "s|@SRCDEST@|$_srcdest|g" "$_srcdest/dkms.conf"
+}
diff --git a/dkms.conf b/dkms.conf
new file mode 100644
index 00000000000..d3869b6123f
--- /dev/null
+++ b/dkms.conf
@@ -0,0 +1,9 @@
+## @file
+PACKAGE_NAME="darling-mach-dkms-git"
+PACKAGE_VERSION="@PKGVER@"
+AUTOINSTALL="yes"
+MAKE="MIGDIR=@SRCDEST@/migdir MIGDIR_REL=migdir make"
+CLEAN="MIGDIR=@SRCDEST@/migdir MIGDIR_REL=migdir make clean"
+
+BUILT_MODULE_NAME[0]="darling-mach"
+DEST_MODULE_LOCATION[0]="/kernel/misc"