Rebuild with lua 5.5
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: libluv
|
name: libluv
|
||||||
description: Bare libuv bindings for lua
|
description: Bare libuv bindings for lua
|
||||||
version: 1.51.0_1
|
version: 1.51.0_1
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://github.com/luvit/luv
|
url: https://github.com/luvit/luv
|
||||||
license: Apache-2.0
|
license: Apache-2.0
|
||||||
architecture: any
|
architecture: any
|
||||||
@@ -10,6 +10,7 @@ make_depends:
|
|||||||
- cmake
|
- cmake
|
||||||
- libuv
|
- libuv
|
||||||
- lua
|
- lua
|
||||||
|
- lua5.4
|
||||||
- lua5.1
|
- lua5.1
|
||||||
- lua5.2
|
- lua5.2
|
||||||
- lua5.3
|
- lua5.3
|
||||||
@@ -28,6 +29,10 @@ split_packages:
|
|||||||
depends:
|
depends:
|
||||||
- libuv
|
- libuv
|
||||||
- lua
|
- lua
|
||||||
|
- name: lua5.4-luv
|
||||||
|
depends:
|
||||||
|
- libuv
|
||||||
|
- lua5.4
|
||||||
- name: lua5.3-luv
|
- name: lua5.3-luv
|
||||||
depends:
|
depends:
|
||||||
- libuv
|
- libuv
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
for ver in 5.1 5.2 5.3 5.4; do
|
for ver in 5.5 5.4 5.3 5.2 5.1; do
|
||||||
bin=/usr/bin/lua$ver
|
bin=/usr/bin/lua$ver
|
||||||
incdir=/usr/include/lua$ver
|
incdir=/usr/include/lua$ver
|
||||||
if [ "$ver" == "5.4" ]; then
|
if [ "$ver" == "5.5" ]; then
|
||||||
bin=/usr/bin/lua
|
bin=/usr/bin/lua
|
||||||
incdir=/usr/include
|
incdir=/usr/include
|
||||||
fi
|
fi
|
||||||
@@ -42,29 +42,36 @@ package_libluv() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
package_lua-luv() {
|
package_lua-luv() {
|
||||||
|
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.5
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/lua-luv/LICENSE.txt
|
||||||
|
}
|
||||||
|
|
||||||
|
package_lua5.4-luv() {
|
||||||
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.4
|
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.4
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/libluv/LICENSE.txt
|
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/lua5.4-luv/LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
package_lua5.3-luv() {
|
package_lua5.3-luv() {
|
||||||
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.3
|
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.3
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/libluv/LICENSE.txt
|
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/lua5.3-luv/LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
package_lua5.2-luv() {
|
package_lua5.2-luv() {
|
||||||
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.2
|
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.2
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/libluv/LICENSE.txt
|
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/lua5.2-luv/LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
package_lua5.1-luv() {
|
package_lua5.1-luv() {
|
||||||
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.1
|
DESTDIR="$BPM_OUTPUT" cmake --install build-lua5.1
|
||||||
|
|
||||||
# Install package license
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/libluv/LICENSE.txt
|
install -Dm644 "$BPM_SOURCE"/LICENSE.txt "$BPM_OUTPUT"/usr/share/licenses/lua5.1-luv/LICENSE.txt
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user