diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c700b2efab2c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Mon Jan 16 05:06:19 UTC 2017 +pkgbase = skim-git + pkgdesc = Fuzzy Finder in rust! + pkgver = 0.2.1.207 + pkgrel = 1 + url = https://github.com/lotabout/skim + arch = x86_64 + arch = i686 + license = MIT + makedepends = cargo + depends = ncurses + provides = skim + conflicts = skim + source = skim-git::git+https://github.com/lotabout/skim.git + sha256sums = SKIP + +pkgname = skim-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b834bc6f949d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +pkgname=skim-git +pkgver=0.2.1.207 +pkgrel=1 +pkgdesc=" Fuzzy Finder in rust!" +arch=('x86_64' 'i686') +url="https://github.com/lotabout/skim" +license=('MIT') +depends=('ncurses') +makedepends=('cargo') +optdepends=() +provides=('skim') +conflicts=('skim') +source=($pkgname::git+https://github.com/lotabout/skim.git) +sha256sums=('SKIP') + +pkgver() { + cd $pkgname + echo $(python -c "print('$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2)'.split('-')[0])").$(git rev-list --count HEAD) +} + +build() { + cd $pkgname + cargo build --release +} + +package() { + cd $pkgname + install -D -m755 "$srcdir/$pkgname/target/release/sk" "$pkgdir/usr/bin/sk" +} |