fixed arch build

This commit is contained in:
SpiritCS
2020-09-11 20:59:40 +02:00
parent 4116d3bbe3
commit 1267614450
3 changed files with 27 additions and 5 deletions

18
pkgs/arch/.SRCINFO Normal file
View File

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

4
pkgs/arch/.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
clapper-0.0.0
clapper-*.pkg.tar.*
pkg/
src/

View File

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