summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d046143ea3fe75b8b0a5e2da6feb38180c4ca66b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Élie Bouttier <elie+aur@bouttier.eu>
pkgname=mvim-git
pkgver=v0.2.0
pkgrel=1
pkgdesc="Rename, move or delete files by editing their names with vim."
arch=(any)
url="https://github.com/bouttier/mvim"
license=('APACHE')
depends=('python')
makedepends=('git')
options=(!emptydirs)
source=("$pkgname"::git+"$url"#branch=main)
noextract=()
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
    cd "$srcdir/$pkgname"
    python setup.py install --root="$pkgdir/" --optimize=1
}