wlroots: change to meta version package
Each compositor choose a different version, use this scheme for ease of packaging other rev-deps.
This commit is contained in:
parent
1b672e9294
commit
702b0c2973
3 changed files with 49 additions and 30 deletions
|
@ -1,38 +1,18 @@
|
||||||
# Template file for 'wlroots'
|
# Template file for 'wlroots'
|
||||||
|
#
|
||||||
|
# On next bump, remove the .99 part
|
||||||
pkgname=wlroots
|
pkgname=wlroots
|
||||||
version=0.16.2
|
version=0.16.99
|
||||||
revision=1
|
revision=1
|
||||||
build_style=meson
|
build_style=meta
|
||||||
# Follow upstream packaging recommendations:
|
depends="wlroots${version%.99}"
|
||||||
# https://gitlab.freedesktop.org/wlroots/wlroots/-/wikis/Packaging-recommendations
|
|
||||||
configure_args="--auto-features=enabled -Dexamples=false -Dwerror=false
|
|
||||||
-Db_ndebug=false"
|
|
||||||
hostmakedepends="pkg-config wayland-devel glslang hwids"
|
|
||||||
_devel_depends="libgbm-devel libglvnd-devel libseat-devel eudev-libudev-devel
|
|
||||||
libdrm-devel libinput-devel libxkbcommon-devel pixman-devel wayland-devel
|
|
||||||
wayland-protocols vulkan-loader Vulkan-Headers xcb-util-errors-devel
|
|
||||||
xcb-util-wm-devel xcb-util-renderutil-devel "
|
|
||||||
makedepends="${_devel_depends}
|
|
||||||
libxcb-devel xcb-util-cursor-devel xcb-util-devel xcb-util-image-devel
|
|
||||||
xcb-util-keysyms-devel xcb-util-xrm-devel xorg-server-xwayland"
|
|
||||||
short_desc="Modular Wayland compositor library"
|
short_desc="Modular Wayland compositor library"
|
||||||
maintainer="Isaac Freund <mail@isaacfreund.com>"
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||||
license="MIT"
|
license="BSD-2-Clause" # no vlicense
|
||||||
homepage="https://gitlab.freedesktop.org/wlroots/wlroots"
|
homepage="https://github.com/swaywm/wlroots"
|
||||||
distfiles="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${version}/downloads/wlroots-${version}.tar.gz"
|
|
||||||
checksum=83e9a11605f23d4bf781ab1947089483d9ec3f7e9ba65398e0609593b77d44aa
|
|
||||||
|
|
||||||
post_install() {
|
|
||||||
vlicense LICENSE
|
|
||||||
}
|
|
||||||
|
|
||||||
wlroots-devel_package() {
|
wlroots-devel_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision} ${_devel_depends}"
|
depends="wlroots${version%.99}-devel"
|
||||||
conflicts="wlroots0.15-devel"
|
build_style=meta
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
|
||||||
vmove usr/include
|
|
||||||
vmove usr/lib/pkgconfig
|
|
||||||
vmove "usr/lib/*.so"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
1
srcpkgs/wlroots0.16-devel
Symbolic link
1
srcpkgs/wlroots0.16-devel
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
wlroots0.16
|
38
srcpkgs/wlroots0.16/template
Normal file
38
srcpkgs/wlroots0.16/template
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# Template file for 'wlroots0.16'
|
||||||
|
pkgname=wlroots0.16
|
||||||
|
version=0.16.2
|
||||||
|
revision=1
|
||||||
|
build_style=meson
|
||||||
|
# Follow upstream packaging recommendations:
|
||||||
|
# https://gitlab.freedesktop.org/wlroots/wlroots/-/wikis/Packaging-recommendations
|
||||||
|
configure_args="--auto-features=enabled -Dexamples=false -Dwerror=false
|
||||||
|
-Db_ndebug=false"
|
||||||
|
hostmakedepends="pkg-config wayland-devel glslang hwids"
|
||||||
|
_devel_depends="libgbm-devel libglvnd-devel libseat-devel eudev-libudev-devel
|
||||||
|
libdrm-devel libinput-devel libxkbcommon-devel pixman-devel wayland-devel
|
||||||
|
wayland-protocols vulkan-loader Vulkan-Headers xcb-util-errors-devel
|
||||||
|
xcb-util-wm-devel xcb-util-renderutil-devel "
|
||||||
|
makedepends="${_devel_depends}
|
||||||
|
libxcb-devel xcb-util-cursor-devel xcb-util-devel xcb-util-image-devel
|
||||||
|
xcb-util-keysyms-devel xcb-util-xrm-devel xorg-server-xwayland"
|
||||||
|
short_desc="Modular Wayland compositor library ${pkgname#wlroots}"
|
||||||
|
maintainer="Isaac Freund <mail@isaacfreund.com>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://gitlab.freedesktop.org/wlroots/wlroots"
|
||||||
|
distfiles="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${version}/downloads/wlroots-${version}.tar.gz"
|
||||||
|
checksum=83e9a11605f23d4bf781ab1947089483d9ec3f7e9ba65398e0609593b77d44aa
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
|
||||||
|
wlroots0.16-devel_package() {
|
||||||
|
depends="${sourcepkg}>=${version}_${revision} ${_devel_depends}"
|
||||||
|
conflicts="wlroots0.15-devel wlroots0.14-devel"
|
||||||
|
short_desc+=" - development files"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/include
|
||||||
|
vmove usr/lib/pkgconfig
|
||||||
|
vmove "usr/lib/*.so"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue