diff options
author | OSO | 2016-07-03 13:32:51 +0000 |
---|---|---|
committer | OSO | 2016-07-03 13:32:51 +0000 |
commit | 75f429bc5e5e730fd3118504a85fdc59753648cd (patch) | |
tree | 7d2e87ec492eca045cce4654e1174b0fcf283f0f /PKGBUILD | |
download | aur-dry.tar.gz |
Init
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..601091d4051c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,15 @@ +# Maintainer: OSO <osospeed@hotmail.com> + +pkgname=dry +pkgUrl=$(wget -O- https://github.com/moncho/dry/releases/ 2>&1 | grep -o -E 'href="([^"#]+)"' | cut -d'"' -f2 | egrep 'download.*linux'| sed 's|^ *[0-9]*\.||gi' | sort -rn | head -n1) +read pkgver pkgalpha pkgrel bin <<< $(echo ${pkgUrl} | sed -r 's|.*download/v([^-]+)-([^\.]+).([^/]+)/(.*)|\1 \2 \3 \4|gi'); +pkgdesc="A Docker container manager for the terminal" +arch=('x86_64' 'i686') + +archBin=${arch/i686/386} +archBin=${arch/x86_64/amd64} + +package() { + wget -O "dry-linux-${archBin}" "https://github.com/moncho/dry/releases/download/v${pkgver}-${pkgalpha}.${pkgrel}/dry-linux-${archBin}" + install -Dm755 "dry-linux-${archBin}" "${pkgdir}/usr/bin/dry" +}
\ No newline at end of file |