summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXorg2017-03-29 20:42:28 +0200
committerXorg2017-03-29 20:42:36 +0200
commit782735e3e32b6006743a60876ad6cef6647dd4aa (patch)
tree415e2e563ca6ac9bbdc7e47ecb0be13cc81051c6
parentec71f60f6a92f5787767e8598d0969db873c380a (diff)
downloadaur-782735e3e32b6006743a60876ad6cef6647dd4aa.tar.gz
Fix ldconfig setup
-rw-r--r--.SRCINFO3
-rw-r--r--.gitignore1
-rw-r--r--PKGBUILD2
-rw-r--r--darling-git.install24
4 files changed, 29 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e0eb8d1bfff..5b2f136de1a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
# Generated by mksrcinfo v8
-# Mon Mar 27 20:11:19 UTC 2017
+# Wed Mar 29 18:42:29 UTC 2017
pkgbase = darling-git
pkgdesc = A Darwin/OS X emulation layer for Linux
pkgver = r1741.a33de880
pkgrel = 1
url = http://www.darlinghq.org
+ install = darling-git.install
arch = x86_64
groups = darling-git
license = GPL3
diff --git a/.gitignore b/.gitignore
index 05c6d4d4c97..e439b10eb6e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
!.gitignore
!.SRCINFO
!PKGBUILD
+!darling-git.install
diff --git a/PKGBUILD b/PKGBUILD
index 6a956782800..dafb6231e1f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,6 +8,7 @@ pkgdesc="A Darwin/OS X emulation layer for Linux"
arch=('x86_64') # Can only be built on x86_64 systems
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'
'wget' 'curl' 'sqlite' 'ruby' 'sed' 'libarchive' 'file' 'python' 'gawk' 'libunwind') # namcap complains about them
@@ -49,4 +50,5 @@ build() {
package() {
cd "$srcdir/$_gitname/build"
make DESTDIR="$pkgdir" install
+ install -Dvm755 "$srcdir/$_gitname/src/setup-ld-so.sh" "$pkgdir/usr/bin/darling-setup-ld-so"
}
diff --git a/darling-git.install b/darling-git.install
new file mode 100644
index 00000000000..5fdceafa6f9
--- /dev/null
+++ b/darling-git.install
@@ -0,0 +1,24 @@
+DARLING_PATH="/usr/libexec/darling"
+
+setup_ld() {
+ cd "$DARLING_PATH"
+ /usr/bin/darling-setup-ld-so
+}
+
+clean_ld() {
+ cd "$DARLING_PATH/etc"
+ rm -fv ld.so.conf ld.so.cache
+ rm -rfv ld.so.conf.d
+}
+
+post_install() {
+ setup_ld
+}
+
+post_upgrade() {
+ setup_ld
+}
+
+pre_remove() {
+ clean_ld
+}