summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 11b513ba91ce3807ce62773f4539c85ee7222c8f (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
25
# Maintainer: Jon Gjengset <jon@tsp.io>
# Contributor: Wai Hon Law <whhone@gmail.com>

pkgname=codemod-git
pkgver=r5.298d47a
pkgrel=1
epoch=2
pkgdesc="codemod is a tool that assists you with large-scale codebase refactors that can be partially automated but still require human oversight and occassional intervention."
arch=('any')
url="https://github.com/facebook/codemod"
license=('Apache')
depends=('python2')
makedepends=('git')
source=("$pkgname::git+https://github.com/whhone/codemod.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$pkgname"
  install -Dm 755 src/codemod.py "$pkgdir/usr/bin/codemod"
}