diff options
author | frostworx | 2021-06-14 12:06:03 +0200 |
---|---|---|
committer | frostworx | 2021-06-14 12:06:03 +0200 |
commit | ff1e939c7bcf083b378fba221056cf7b2f4e9126 (patch) | |
tree | 38054bc1f575aac231040d0fe0ac1e10c6569bfa | |
download | aur-ff1e939c7bcf083b378fba221056cf7b2f4e9126.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c6048d192f57 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = appinfo-vdf-git + pkgdesc = A command-line utility to parse Steam appinfo.vdf files + pkgver = 0.r1.8251f7e + pkgrel = 1 + url = https://github.com/pdfrod/appinfo-vdf + arch = x86_64 + license = MIT + makedepends = cargo + makedepends = git + depends = gcc-libs + provides = appinfo-vdf + conflicts = appinfo-vdf + source = git+https://github.com/pdfrod/appinfo-vdf.git + sha1sums = SKIP + +pkgname = appinfo-vdf-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..128dbe5e031e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Marcel Unbehaun <f.rostze.ux at gmail dot com> +pkgname=appinfo-vdf-git +pkgver=0.r1.8251f7e +pkgrel=1 +pkgdesc="A command-line utility to parse Steam appinfo.vdf files" +arch=('x86_64') +url="https://github.com/pdfrod/appinfo-vdf" +license=('MIT') +depends=('gcc-libs') +makedepends=('cargo' 'git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=('git+https://github.com/pdfrod/appinfo-vdf.git') +sha1sums=('SKIP') + +pkgver() { + cd "${pkgname%-git}" + printf "%s.r%s.%s" "0" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${pkgname%-git}" + + cargo build --release --locked +} + +package() { + cd "${pkgname%-git}" + + install -Dm755 "target/release/${pkgname%-git}" "$pkgdir/usr/bin/${pkgname%-git}" + install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname%-git}/README.md" +} |