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

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