From 16087edaff34630f4d46ab0b619cead55a9dbfc9 Mon Sep 17 00:00:00 2001
From: Rafostar <40623528+Rafostar@users.noreply.github.com>
Date: Sat, 19 Sep 2020 12:31:27 +0200
Subject: [PATCH] Update Arch PKGBUILD
---
pkgs/arch/PKGBUILD | 34 +++++++++++++++++-------
pkgs/arch/obs/PKGBUILD | 59 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+), 9 deletions(-)
create mode 100644 pkgs/arch/obs/PKGBUILD
diff --git a/pkgs/arch/PKGBUILD b/pkgs/arch/PKGBUILD
index 3753db5e..7a6e546d 100644
--- a/pkgs/arch/PKGBUILD
+++ b/pkgs/arch/PKGBUILD
@@ -26,24 +26,40 @@ pkgdesc="A GNOME media player built using GJS and powered by GStreamer with Open
arch=(any)
url="https://github.com/Rafostar/clapper"
license=("GPL-3.0")
-depends=("gjs" "gst-plugins-base-libs" "gst-plugin-gtk" "gst-plugins-bad-libs")
-makedepends=("meson" "gjs")
-optdepends=("gst-libav: Additional Codecs", "gstreamer-vaapi: Hardware acceleration")
+depends=(
+ "gtk3>=3.19.4"
+ "hicolor-icon-theme"
+ "gjs"
+ "gst-plugins-base-libs"
+ "gst-plugin-gtk"
+ "gst-plugins-bad-libs>=1.16.0"
+)
+makedepends=(
+ "meson>=0.50"
+ "gjs"
+ "git"
+)
+optdepends=(
+ "gst-libav: Popular video decoders"
+ "gstreamer-vaapi: Intel/AMD video acceleration"
+)
+source=("${pkgname%-git}::git+https://github.com/Rafostar/${pkgname%-git}.git#branch=master")
provides=("${pkgname%-git}")
-source=("${pkgname%-git}-$pkgver"::git+https://github.com/Rafostar/clapper.git)
+replaces=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
md5sums=("SKIP")
-prepare() {
- cd "${pkgname%-git}-$pkgver"
+pkgver() {
+ cd "$srcdir"/"${pkgname%-git}"
+ echo "0.0.0.r0.$(git rev-parse --short HEAD)"
}
build() {
- cd "${pkgname%-git}-$pkgver"
+ cd "$srcdir"/"${pkgname%-git}"
meson build/ --prefix=/usr
}
package() {
- cd "${pkgname%-git}-$pkgver"
+ cd "$srcdir"/"${pkgname%-git}"
DESTDIR="$pkgdir" meson install -C build/
}
-
diff --git a/pkgs/arch/obs/PKGBUILD b/pkgs/arch/obs/PKGBUILD
new file mode 100644
index 00000000..e54eb418
--- /dev/null
+++ b/pkgs/arch/obs/PKGBUILD
@@ -0,0 +1,59 @@
+#
+# PKGBUILD file for package clapper
+#
+# Copyright (C) 2020 sp1rit
+# Copyright (C) 2020 Rafostar
+#
+# 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: Rafostar
+
+pkgname=clapper
+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=(
+ "gtk3>=3.19.4"
+ "hicolor-icon-theme"
+ "gjs"
+ "gst-plugins-base-libs"
+ "gst-plugin-gtk"
+ "gst-plugins-bad-libs>=1.16.0"
+)
+makedepends=(
+ "meson>=0.50"
+ "gjs"
+)
+optdepends=(
+ "gst-libav: Popular video decoders"
+ "gstreamer-vaapi: Intel/AMD video acceleration"
+)
+source=("$pkgname-$pkgver.tar.xz")
+provides=("${pkgname}")
+replaces=("${pkgname}")
+conflicts=("${pkgname}")
+md5sums=("SKIP")
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ meson build/ --prefix=/usr
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ DESTDIR="$pkgdir" meson install -C build/
+}