Update dependencies and source.sh script
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: libevdev
|
name: libevdev
|
||||||
description: Wrapper library for evdev devices
|
description: Wrapper library for evdev devices
|
||||||
version: 1.13.6
|
version: 1.13.6
|
||||||
revision: 1
|
revision: 2
|
||||||
url: https://www.freedesktop.org/wiki/Software/libevdev/
|
url: https://www.freedesktop.org/wiki/Software/libevdev/
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
@@ -9,9 +9,10 @@ type: source
|
|||||||
depends:
|
depends:
|
||||||
- glibc
|
- glibc
|
||||||
make_depends:
|
make_depends:
|
||||||
- meson
|
|
||||||
- check
|
- check
|
||||||
|
- meson
|
||||||
- python3
|
- python3
|
||||||
|
- valgrind
|
||||||
downloads:
|
downloads:
|
||||||
- url: https://www.freedesktop.org/software/libevdev/libevdev-${BPM_PKG_VERSION}.tar.xz
|
- url: https://www.freedesktop.org/software/libevdev/libevdev-${BPM_PKG_VERSION}.tar.xz
|
||||||
extract_to: ${BPM_SOURCE}
|
extract_to: ${BPM_SOURCE}
|
||||||
|
|||||||
@@ -5,29 +5,21 @@
|
|||||||
# 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() {
|
||||||
mkdir build
|
meson setup --prefix=/usr -Ddocumentation=disabled build
|
||||||
cd build
|
meson compile -C build
|
||||||
|
|
||||||
meson setup --prefix=/usr \
|
|
||||||
--libdir=/usr/lib \
|
|
||||||
--buildtype=release \
|
|
||||||
-Ddocumentation=disabled \
|
|
||||||
..
|
|
||||||
ninja
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The check function is executed in the source directory
|
# The check function is executed in the source directory
|
||||||
# This function is used to run tests to verify the package has been compiled correctly
|
# This function is used to run tests to verify the package has been compiled correctly
|
||||||
check() {
|
check() {
|
||||||
cd build
|
meson test -C build
|
||||||
ninja test
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# The package function is executed in the source directory
|
# The package function is executed in the source directory
|
||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
cd build
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
DESTDIR="$BPM_OUTPUT" ninja install
|
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libevdev/COPYING
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libevdev/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user