diff options
author | Jiří Klimeš | 2022-09-27 17:20:59 +0200 |
---|---|---|
committer | Jiří Klimeš | 2022-09-27 17:28:26 +0200 |
commit | f120ecea59fcfb20b610a264d1f25bc4b6b6e600 (patch) | |
tree | 1470a5883a673fc1a413064abfc92010e9396a1c | |
parent | 8200e41d8bff66d0dfd9fd67f1c765fa04248f55 (diff) | |
download | aur-f120ecea59fcfb20b610a264d1f25bc4b6b6e600.tar.gz |
Fix build on updated kernel with not-cleaned-build-source
tecmake.mak creates lib directory named after a Linux version, like Linux420_64.
When there was an older directory in source (e.g. Linux419_64), the install command
tried to install files from both directories and failed with errors.
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -44,8 +44,10 @@ _package_helper() { _lua_ver=$1 _lua_ver_nodot=`echo $1 | cut -c1,3` + _linux_ver="Linux$(uname -r | awk -v FS='.' -v OFS='' {'print $1,$2'})_64" + install -m755 -d "$pkgdir"/usr/lib/lua/${_lua_ver} - install -m755 "$srcdir"/luagl/lib/Linux*/Lua${_lua_ver_nodot}/*.so "$pkgdir"/usr/lib/lua/${_lua_ver} + install -m755 "$srcdir"/luagl/lib/${_linux_ver}/Lua${_lua_ver_nodot}/*.so "$pkgdir"/usr/lib/lua/${_lua_ver} install -Dm644 "$srcdir"/luagl/COPYRIGHT "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE install -m755 -d "$pkgdir"/usr/share/doc/$pkgname/html install -Dm644 "$srcdir"/luagl/html/*.* "$pkgdir"/usr/share/doc/$pkgname/html |