diff options
author | Magnus Boman | 2020-07-12 17:03:52 +0200 |
---|---|---|
committer | Magnus Boman | 2020-07-12 17:03:52 +0200 |
commit | f315b6205ac3e72fe90ce9cc434233f435d04435 (patch) | |
tree | 97accbf7a9496c17e4f7432cf077be68091754ab | |
parent | d03cd2806d01c4e8f6b6cae2bf1aece9f1ba9124 (diff) | |
download | aur-f315b6205ac3e72fe90ce9cc434233f435d04435.tar.gz |
mpv-webm-git: clean up pkgbuild
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 16 insertions, 17 deletions
@@ -10,7 +10,7 @@ pkgbase = mpv-webm-git depends = mpv provides = mpv-webm conflicts = mpv-webm - source = git+https://github.com/ekisu/mpv-webm + source = git+https://github.com/ekisu/mpv-webm.git md5sums = SKIP pkgname = mpv-webm-git @@ -1,31 +1,30 @@ # Maintainer: katt <magunasu.b97@gmail.com> -_pkgname=mpv-webm -pkgname=$_pkgname-git +pkgname=mpv-webm-git pkgver=r84.9b5da33 pkgrel=1 -pkgdesc="Simple WebM maker for mpv" -arch=('any') -url="https://github.com/ekisu/mpv-webm" -license=('MIT') -depends=('mpv') -makedepends=('git' 'moonscript') -provides=("$_pkgname") -conflicts=("$_pkgname") -source=("git+$url") -md5sums=('SKIP') +pkgdesc='Simple WebM maker for mpv' +arch=(any) +url='https://github.com/ekisu/mpv-webm' +license=(MIT) +depends=(mpv) +makedepends=(git moonscript) +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=(git+"${url}".git) +md5sums=(SKIP) pkgver() { - cd "$_pkgname" + cd "${pkgname%-git}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "$_pkgname" + cd "${pkgname%-git}" make } package() { - install -Dm644 "$_pkgname/build/webm.lua" -t "$pkgdir/usr/lib/mpv" - install -Dm644 "$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 "${pkgname%-git}/build/webm.lua" -t "$pkgdir/usr/lib/mpv" + install -Dm644 "${pkgname%-git}/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" } |