diff options
author | Andrej Radovic | 2018-12-20 11:55:14 +0100 |
---|---|---|
committer | Andrej Radovic | 2018-12-20 11:55:14 +0100 |
commit | c48af20125de1a8b26a9ca55789d09925d12f4a3 (patch) | |
tree | f11e6dbf7052a58188dfc2e7b90cc82841b3aef1 | |
download | aur-c48af20125de1a8b26a9ca55789d09925d12f4a3.tar.gz |
Initial commit.
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3c401f706e3f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = ptags + pkgdesc = A parallel universal-ctags wrapper for git repository. + pkgver = 0.2.1 + pkgrel = 1 + url = https://github.com/dalance/ptags + arch = i686 + arch = x86_64 + license = MIT + makedepends = git + makedepends = cargo + depends = git + depends = ctags + depends = git-lfs + provides = ptags + conflicts = ptags-git + source = ptags-0.2.1.zip::https://github.com/dalance/ptags/archive/v0.2.1.zip + sha256sums = 86ef6f22b8e943f6c2cb09362211f4f2f5d39b9398df4123f7eb13cbc581457d + +pkgname = ptags + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3b368c729360 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Andrej Radović <r.andrej@gmail.com> + +pkgname=ptags +pkgver=0.2.1 +pkgrel=1 +pkgdesc='A parallel universal-ctags wrapper for git repository.' +arch=('i686' 'x86_64') +url='https://github.com/dalance/ptags' +license=('MIT') +makedepends=('git' 'cargo') +depends=('git' 'ctags' 'git-lfs') +provides=('ptags') +conflicts=('ptags-git') +source=("$pkgname"::'git+https://github.com/dalance/ptags.git') +source=( + $pkgname-$pkgver.zip::https://github.com/dalance/ptags/archive/v$pkgver.zip +) +sha256sums=('86ef6f22b8e943f6c2cb09362211f4f2f5d39b9398df4123f7eb13cbc581457d') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + cargo build --release +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + install -D 'target/release/ptags' "$pkgdir/usr/bin/ptags" + install -D 'LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |