diff options
author | Daniel Bermond | 2018-12-03 19:27:23 +0000 |
---|---|---|
committer | Daniel Bermond | 2018-12-03 19:27:23 +0000 |
commit | 8f699c6ddf1f43f32b0e0d0abc75ff5937143dc3 (patch) | |
tree | 3bf7b1cce9850197ec0b5a001de2aae2a402c382 | |
parent | b7977000960b462834bd63396ad38cf884323451 (diff) | |
download | aur-8f699c6ddf1f43f32b0e0d0abc75ff5937143dc3.tar.gz |
Add missing symbolic link
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 22 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = crossc-git pkgdesc = Portable C wrapper for SPIRV-Cross (git version) pkgver = 1.6.0.r0.g98689d7 - pkgrel = 2 + pkgrel = 3 url = https://github.com/rossy/crossc/ arch = i686 arch = x86_64 @@ -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) } |