diff options
author | Akatsuki Rui | 2021-06-10 14:19:26 +0800 |
---|---|---|
committer | Akatsuki Rui | 2021-06-10 14:19:26 +0800 |
commit | 10c5e56dd0ff161b2b43c5489186d57b1f205d4b (patch) | |
tree | 291612d5c8f24ea2555ab46361235275e5e24317 | |
parent | 4df829e2e8fde56de4f2f61a78587dd5d5aea8bb (diff) | |
download | aur-10c5e56dd0ff161b2b43c5489186d57b1f205d4b.tar.gz |
0.1.8.r0.g8c9aebd
Fix wrong arch=("any") to ("x86_64")
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 5 deletions
@@ -1,10 +1,10 @@ pkgbase = mpv-handler-git pkgdesc = Play website videos and songs with mpv & youtube-dl. - pkgver = 0.1.1.r0.g4b5d5b6 + pkgver = 0.1.8.r0.g8c9aebd pkgrel = 1 epoch = 1 url = https://github.com/akiirui/mpv-handler/ - arch = any + arch = x86_64 license = MIT makedepends = cargo makedepends = git @@ -14,4 +14,3 @@ pkgbase = mpv-handler-git b2sums = SKIP pkgname = mpv-handler-git - @@ -2,10 +2,10 @@ _pkgname="mpv-handler" pkgname="mpv-handler-git" -pkgver=0.1.1.r0.g4b5d5b6 +pkgver=0.1.8.r0.g8c9aebd pkgrel=1 pkgdesc="Play website videos and songs with mpv & youtube-dl." -arch=("any") +arch=("x86_64") depends=("mpv" "youtube-dl") makedepends=("cargo" "git") url="https://github.com/akiirui/mpv-handler/" @@ -16,16 +16,19 @@ epoch=1 pkgver() { cd "$srcdir/$_pkgname" + git describe --long --tags | sed "s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g" } build() { cd "$srcdir/$_pkgname" + MPV_HANDLER_VERSION=$pkgver cargo build --locked --release --target-dir target } package() { cd "$srcdir/$_pkgname" + install -Dm755 "target/release/mpv-handler" "$pkgdir/usr/bin/mpv-handler" install -Dm644 "share/linux/mpv-handler.desktop" "$pkgdir/usr/share/applications/mpv-handler.desktop" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |