summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Bermond2018-12-03 19:27:23 +0000
committerDaniel Bermond2018-12-03 19:27:23 +0000
commit8f699c6ddf1f43f32b0e0d0abc75ff5937143dc3 (patch)
tree3bf7b1cce9850197ec0b5a001de2aae2a402c382 /PKGBUILD
parentb7977000960b462834bd63396ad38cf884323451 (diff)
downloadaur-8f699c6ddf1f43f32b0e0d0abc75ff5937143dc3.tar.gz
Add missing symbolic link
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD22
1 files changed, 21 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7e8a95f03348..5be7ed349de4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=crossc-git
_srcname=crossc
pkgver=1.6.0.r0.g98689d7
-pkgrel=2
+pkgrel=3
pkgdesc='Portable C wrapper for SPIRV-Cross (git version)'
arch=('i686' 'x86_64')
url='https://github.com/rossy/crossc/'
@@ -41,5 +41,25 @@ build() {
package() {
cd "$_srcname"
+ local _file
+ local _lib
+ local _soname
+ local _somaj
+ local _sover
+
make DESTDIR="$pkgdir" prefix='/usr' install
+
+ cd "${pkgdir}/usr/lib"
+
+ # create missing symbolic link
+ while read -rd '' _file
+ do
+ _lib="${_file##*/}"
+ _soname="${_lib%%.*}"
+ _sover="${_lib##*.so.}"
+ _somaj="${_sover%%.*}"
+
+ ln -s "${_lib}" "${_soname}.so.${_somaj}"
+
+ done < <(find . -type f -name 'lib*.so.*.*.*' -print0)
}