diff options
author | aulonsal | 2021-07-04 09:53:42 +0530 |
---|---|---|
committer | aulonsal | 2021-07-04 09:53:42 +0530 |
commit | 641c2cd224ba6860dc4ff4b16e4a616e84c863a7 (patch) | |
tree | 98e9948b165a916a9ce2a1bdaa72379126d6ba95 | |
download | aur-641c2cd224ba6860dc4ff4b16e4a616e84c863a7.tar.gz |
Initial upload: outfieldr 1.0.0-1
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | PKGBUILD | 62 |
2 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d582fb8f2938 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = outfieldr + pkgdesc = TLDR client in zig + pkgver = 1.0.0 + pkgrel = 1 + url = https://gitlab.com/ve-nt/outfieldr + arch = x86_64 + license = MIT + makedepends = git + makedepends = zig + provides = tldr + conflicts = tldr + source = git+https://gitlab.com/ve-nt/outfieldr.git#tag=1.0.0 + source = git+https://github.com/truemedian/zfetch.git + source = git+https://github.com/Hejsil/zig-clap.git#branch=zig-master + source = zig-tar::git+https://github.com/mattnite/tar.git + source = git+https://github.com/MasterQ32/zig-network.git + source = git+https://github.com/MasterQ32/zig-uri.git + source = git+https://github.com/alexnask/iguanaTLS.git + source = git+https://github.com/truemedian/hzzp.git + b2sums = SKIP + b2sums = SKIP + b2sums = SKIP + b2sums = SKIP + b2sums = SKIP + b2sums = SKIP + b2sums = SKIP + b2sums = SKIP + +pkgname = outfieldr diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6147b076326f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: aulonsal <aulonsal at gmail dot com> +pkgname=outfieldr +pkgver=1.0.0 +pkgrel=1 +pkgdesc='TLDR client in zig' +arch=('x86_64') +url='https://gitlab.com/ve-nt/outfieldr' +license=('MIT') +makedepends=('git' 'zig') +provides=('tldr') +conflicts=('tldr') +source=( + "git+$url.git#tag=$pkgver" + 'git+https://github.com/truemedian/zfetch.git' + 'git+https://github.com/Hejsil/zig-clap.git#branch=zig-master' + 'zig-tar::git+https://github.com/mattnite/tar.git' + 'git+https://github.com/MasterQ32/zig-network.git' + 'git+https://github.com/MasterQ32/zig-uri.git' + 'git+https://github.com/alexnask/iguanaTLS.git' + 'git+https://github.com/truemedian/hzzp.git' +) +b2sums=( + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' +) + +prepare() { + cd "$pkgname" + + git submodule init + git config submodule.deps/zfetch.url "${srcdir}/zfetch" + git config submodule.deps/zig-clap.url "${srcdir}/zig-clap" + git config submodule.deps/zig-clap.branch 'zig-master' + git config submodule.deps/tar.url "${srcdir}/zig-tar" + git config submodule.deps/zig-network.url "${srcdir}/zig-network" + git config submodule.deps/zig-uri.url "${srcdir}/zig-uri" + git config submodule.deps/iguanaTLS.url "${srcdir}/iguanaTLS" + git config submodule.deps/hzzp.url "${srcdir}/hzzp" + git submodule update +} + +build() { + cd "$pkgname" + + zig build -Drelease-safe +} + +package() { + cd "$pkgname" + + DESTDIR="${pkgdir}" zig build \ + -Drelease-safe \ + install + + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" +} |