Update Arch PKGBUILD

This commit is contained in:
Rafostar
2020-09-19 12:31:27 +02:00
parent dc707630f9
commit 16087edaff
2 changed files with 84 additions and 9 deletions

View File

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