diff --git a/pkgs/arch/PKGBUILD b/pkgs/arch/PKGBUILD new file mode 100644 index 00000000..466d43aa --- /dev/null +++ b/pkgs/arch/PKGBUILD @@ -0,0 +1,49 @@ +# +# PKGBUILD file for package clapper +# +# Copyright (C) 2020 sp1rit +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# Maintainer: sp1rit + +pkgname=clapper-git +pkgver=0.0.0 +pkgrel=1 +pkgdesc="A GNOME media player built using GJS and powered by GStreamer with OpenGL rendering. Can also be used as a pre-made widget for Gtk apps." +arch=(any) +url="https://github.com/Rafostar/clapper" +license=("GPL-3.0") +depends=("gjs" "gst-plugins-bad-libs") +makedepends=("meson" "gjs") +optdepends=("gstreamer-vaapi: Hardware acceleration") +provides=("${pkgname%-git}") +source=("${pkgname%-git}"::git+https://github.com/Rafostar/clapper.git) +md5sums=("SKIP") + +prepare() { + cd "$pkgname-$pkgver" +} + +build() { + cd "$pkgname-$pkgver" + meson build/ --prefix=/usr +} + +package() { + cd "$pkgname-$pkgver" + DESTDIR="$pkgdir" meson install -C build/ + ln -s "/usr/bin/com.github.rafostar.Clapper" "$pkgdir/bin/clapper" +} + diff --git a/pkgs/flatpak/.gitignore b/pkgs/flatpak/.gitignore new file mode 100644 index 00000000..1afd08ef --- /dev/null +++ b/pkgs/flatpak/.gitignore @@ -0,0 +1,2 @@ +build/ +.flatpak-builder/ diff --git a/pkgs/flatpak/com.github.rafostar.Clapper.yml b/pkgs/flatpak/com.github.rafostar.Clapper.yml new file mode 100644 index 00000000..1c00d420 --- /dev/null +++ b/pkgs/flatpak/com.github.rafostar.Clapper.yml @@ -0,0 +1,23 @@ +app-id: com.github.rafostar.Clapper +runtime: org.gnome.Platform +runtime-version: 3.36 +sdk: org.gnome.Sdk +command: com.github.rafostar.Clapper +finish-args: + - --share=ipc + - --socket=fallback-x11 + - --socket=wayland + - --device=dri + - --filesystem=xdg-videos + - --socket=pulseaudio + - --share=network + +# maybe add additinal codecs? + +modules: + - name: clapper + buildsystem: meson + sources: + - type: git + url: https://github.com/Rafostar/clapper.git + commit: 22e8e443162825f00666ca6898be3e868a3c0749 diff --git a/pkgs/rpm/.gitignore b/pkgs/rpm/.gitignore new file mode 100644 index 00000000..7cc4cb38 --- /dev/null +++ b/pkgs/rpm/.gitignore @@ -0,0 +1,3 @@ +.osc/ +clapper/ +.lock diff --git a/pkgs/rpm/_service b/pkgs/rpm/_service new file mode 100644 index 00000000..f9e3016f --- /dev/null +++ b/pkgs/rpm/_service @@ -0,0 +1,12 @@ + + + https://github.com/Rafostar/clapper.git + git + + + + *.tar + xz + + + \ No newline at end of file diff --git a/pkgs/rpm/clapper.changes b/pkgs/rpm/clapper.changes new file mode 100644 index 00000000..9b065e95 --- /dev/null +++ b/pkgs/rpm/clapper.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Sep 9 08:28:29 UTC 2020 - Florian + +- Initial packaging diff --git a/pkgs/rpm/clapper.rpmlintrc b/pkgs/rpm/clapper.rpmlintrc new file mode 100644 index 00000000..329e0784 --- /dev/null +++ b/pkgs/rpm/clapper.rpmlintrc @@ -0,0 +1 @@ +addFilter("explicit-lib-dependency") diff --git a/pkgs/rpm/clapper.spec b/pkgs/rpm/clapper.spec new file mode 100644 index 00000000..c8890544 --- /dev/null +++ b/pkgs/rpm/clapper.spec @@ -0,0 +1,64 @@ +# +# spec file for package clapper +# +# Copyright (C) 2020 sp1rit +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +Name: clapper +Version: 0.0.0 +Release: 0man +Summary: A GNOME media player +License: GPL-3.0 +URL: https://github.com/Rafostar/clapper +BuildArchitectures: noarch +BuildRoot: %{_builddir}/%{name}-%{version}-build +BuildRequires: meson gjs +Requires: gjs gstreamer +Source0: _service +%if 0%{?suse_version} +Requires: libgstplayer-1_0-0 +Recommends: gstreamer-plugins-vaapi +%endif +%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} +BuildRequires: glibc-all-langpacks +Requires: gstreamer1-plugins-bad-free +Recommends: gstreamer1-vaapi +%endif + +%description +A GNOME media player built using GJS and powered by GStreamer with OpenGL rendering. Can also be used as a pre-made widget for Gtk apps. + +%prep +%setup -q -n %_sourcedir/%name-%version -T -D + +%build +%meson +%meson_build + +%install +%meson_install +ln -s %{_bindir}/com.github.rafostar.Clapper %{buildroot}/%{_bindir}/clapper + +%files +%license COPYING +%doc README.md +%_bindir/com.github.rafostar.Clapper +%_bindir/clapper +%_datadir/com.github.rafostar.Clapper/ +%dir %_datadir/gjs-1.0/ +%_datadir/gjs-1.0/clapper.js + +%changelog