Files
alr-repo/gpu-screen-recorder-notification/alr.sh

72 lines
2.0 KiB
Bash

name='gpu-screen-recorder-notification'
version='1.1.0'
release='1'
desc='Notification in the style of ShadowPlay'
desc_ru='Уведомления в стиле ShadowPlay'
homepage='https://git.dec05eba.com/gpu-screen-recorder-notification'
maintainer='Evgeny Khramov <xpamych@yandex.ru>'
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
architectures=('amd64')
license=('GPL-3.0-only')
provides=('gsr-notify')
conflicts=('gsr-notify')
deps=(
"libglvnd"
"libX11"
"libXrandr"
"libXrender"
"libXext"
)
deps_arch=(
'libglvnd'
'libx11'
'libxrandr'
'libxrender'
'libxext'
)
deps_alt=("${deps[@]}")
deps_debian=(
'libgl1'
'libx11-6'
'libxrandr2'
'libxrender1'
'libxext6'
)
deps_fedora=("${deps[@]}")
deps_redos=("${deps[@]}")
deps_rhel=("${deps[@]}")
deps_rosa=("${deps[@]}")
build_deps=(
"meson"
)
build_deps_alt=("${build_deps[@]}" "ninja-build")
build_deps_arch=("${build_deps[@]}" "ninja")
build_deps_debian=("${build_deps[@]}" "ninja-build" "libgl-dev" "libx11-dev" "libxrandr-dev" "libxrender-dev" "libxext-dev")
build_deps_fedora=("${build_deps[@]}" "ninja-build" "libglvnd-devel" "libX11-devel" "libXrandr-devel" "libXrender-devel" "libXext-devel")
build_deps_redos=("${build_deps[@]}" "ninja-build" "libglvnd-devel" "libX11-devel" "libXrandr-devel" "libXrender-devel" "libXext-devel")
build_deps_rhel=("${build_deps[@]}" "ninja-build" "libglvnd-devel" "libX11-devel" "libXrandr-devel" "libXrender-devel" "libXext-devel")
build_deps_rosa=("${build_deps[@]}" "ninja-build" "libglvnd-devel" "libX11-devel" "libXrandr-devel" "libXrender-devel" "libXext-devel")
sources=("https://dec05eba.com/snapshot/gpu-screen-recorder-notification.git.${version}.tar.gz")
checksums=('SKIP')
build() {
cd "$srcdir"
meson setup build --prefix=/usr --buildtype=release -Dstrip=true
ninja -C build -j $(($(nproc) - 1))
}
package() {
cd "$srcdir"
meson install -C build --destdir="$pkgdir"
}
files() {
files-find-bin
files-find-share "gsr-notify"
}