From 1267614450552bc7fb91dd6d7ed7aad5c5021411 Mon Sep 17 00:00:00 2001 From: SpiritCS Date: Fri, 11 Sep 2020 20:59:40 +0200 Subject: [PATCH] fixed arch build --- pkgs/arch/.SRCINFO | 18 ++++++++++++++++++ pkgs/arch/.gitignore | 4 ++++ pkgs/arch/PKGBUILD | 10 +++++----- 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 pkgs/arch/.SRCINFO create mode 100644 pkgs/arch/.gitignore diff --git a/pkgs/arch/.SRCINFO b/pkgs/arch/.SRCINFO new file mode 100644 index 00000000..212c93c6 --- /dev/null +++ b/pkgs/arch/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = clapper-git + 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. + pkgver = 0.0.0 + pkgrel = 1 + url = https://github.com/Rafostar/clapper + arch = any + license = GPL-3.0 + makedepends = meson + makedepends = gjs + depends = gjs + depends = gst-plugins-bad-libs + optdepends = gstreamer-vaapi: Hardware acceleration + provides = clapper + source = clapper-0.0.0::git+https://github.com/Rafostar/clapper.git + md5sums = SKIP + +pkgname = clapper-git + diff --git a/pkgs/arch/.gitignore b/pkgs/arch/.gitignore new file mode 100644 index 00000000..b3e983a2 --- /dev/null +++ b/pkgs/arch/.gitignore @@ -0,0 +1,4 @@ +clapper-0.0.0 +clapper-*.pkg.tar.* +pkg/ +src/ diff --git a/pkgs/arch/PKGBUILD b/pkgs/arch/PKGBUILD index 466d43aa..7483a3fc 100644 --- a/pkgs/arch/PKGBUILD +++ b/pkgs/arch/PKGBUILD @@ -29,21 +29,21 @@ 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) +source=("${pkgname%-git}-$pkgver"::git+https://github.com/Rafostar/clapper.git) md5sums=("SKIP") prepare() { - cd "$pkgname-$pkgver" + cd "${pkgname%-git}-$pkgver" } build() { - cd "$pkgname-$pkgver" + cd "${pkgname%-git}-$pkgver" meson build/ --prefix=/usr } package() { - cd "$pkgname-$pkgver" + cd "${pkgname%-git}-$pkgver" DESTDIR="$pkgdir" meson install -C build/ - ln -s "/usr/bin/com.github.rafostar.Clapper" "$pkgdir/bin/clapper" + ln -s "$pkgdir/usr/bin/com.github.rafostar.Clapper" "$pkgdir/usr/bin/clapper" }