diff options
author | Vincent Herlemont | 2020-08-07 08:04:29 +0000 |
---|---|---|
committer | Vincent Herlemont | 2020-08-07 08:04:29 +0000 |
commit | 9d7511f9d8f8fdbdaf69335443721c8a30217b49 (patch) | |
tree | 2acf8a137eee0d082fd741a7adc89ea4f9adb2f8 | |
download | aur-9d7511f9d8f8fdbdaf69335443721c8a30217b49.tar.gz |
init
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b20341a5449e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = short-git + pkgdesc = A concise cli launcher / project manager using env files + pkgver = 0.3.2.r1.g451352e + pkgrel = 1 + url = https://github.com/vincent-herlemont/short + arch = i686 + arch = x86_64 + arch = armv6h + arch = armv7h + license = Apache-2.0 + license = MIT + makedepends = git + makedepends = rust + makedepends = cargo + makedepends = openssl + makedepends = libgit2 + source = short-git::git+https://github.com/vincent-herlemont/short.git + md5sums = SKIP + +pkgname = short-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..fb9caa5550e5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Vincent Herlemont <vincentherl@leszeros.com> +pkgname=short-git +pkgver=0.3.2.r1.g451352e +pkgrel=1 +pkgdesc="A concise cli launcher / project manager using env files" +source=("${pkgname}::git+https://github.com/vincent-herlemont/short.git") +url="https://github.com/vincent-herlemont/short" +makedepends=('git' 'rust' 'cargo' 'openssl' 'libgit2') +provides=() +replaces=() +md5sums=('SKIP') +arch=('i686' 'x86_64' 'armv6h' 'armv7h') +license=('Apache-2.0' 'MIT') + +pkgver() { + cd ${pkgname}; + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd ${pkgname}; + cargo build --release --locked --features disabled_check_new_version +} + +package() { + cd ${pkgname}; + install -Dm 755 target/release/sht -t "${pkgdir}/usr/bin" +} |