Added Arch, Flatpak & RPM package files

This commit is contained in:
Florian Singer
2020-09-11 20:51:37 +02:00
parent 5afe5149aa
commit 4116d3bbe3
8 changed files with 158 additions and 0 deletions

49
pkgs/arch/PKGBUILD Normal file
View File

@@ -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 <https://www.gnu.org/licenses/>.
# Maintainer: sp1rit <sp1ritCS@protonmail.com>
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"
}

2
pkgs/flatpak/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
build/
.flatpak-builder/

View File

@@ -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

3
pkgs/rpm/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.osc/
clapper/
.lock

12
pkgs/rpm/_service Normal file
View File

@@ -0,0 +1,12 @@
<services>
<service name="obs_scm">
<param name="url">https://github.com/Rafostar/clapper.git</param>
<param name="scm">git</param>
</service>
<service name="tar" mode="buildtime" />
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="buildtime" />
</services>

4
pkgs/rpm/clapper.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Sep 9 08:28:29 UTC 2020 - Florian <sp1ritCS@protonmail.com>
- Initial packaging

View File

@@ -0,0 +1 @@
addFilter("explicit-lib-dependency")

64
pkgs/rpm/clapper.spec Normal file
View File

@@ -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 <https://www.gnu.org/licenses/>.
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