From 6677e8d4c738d5a94be6f29d4feedb7acdcdda1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Si=C3=B4n=20le=20Roux?= Date: Tue, 13 Mar 2018 01:12:13 +0100 Subject: [PATCH] Initial commit: working package --- .SRCINFO | 14 ++++++++++++++ .gitignore | 3 +++ PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..20d181d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = reg + pkgdesc = Docker registry v2 command line client + pkgver = 0.13.0 + pkgrel = 1 + url = https://github.com/genuinetools/reg + arch = x86_64 + license = MIT + source = https://github.com/genuinetools/reg/releases/download/v0.13.0/reg-linux-amd64 + source = https://raw.githubusercontent.com/genuinetools/reg/master/LICENSE + md5sums = 88b90e7d3d7ac99c880cf3c804440d15 + md5sums = 48ef0979a2bcc3fae14ff30b8a7f5dbf + +pkgname = reg + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbeda78 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +reg-linux-amd64 +reg-*x86_64.pkg.tar.xz +LICENSE diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..bcf86de --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: SiƓn le Roux +pkgname=reg +_pkgname=reg-linux-amd64 +pkgver=0.13.0 +pkgrel=1 +pkgdesc="Docker registry v2 command line client" +arch=('x86_64') +url="https://github.com/genuinetools/${pkgname}" +license=('MIT') +groups=() +depends=() +makedepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +source=( + "https://github.com/genuinetools/${pkgname}/releases/download/v${pkgver}/${_pkgname}" + "https://raw.githubusercontent.com/genuinetools/${pkgname}/master/LICENSE" +) +md5sums=( + '88b90e7d3d7ac99c880cf3c804440d15' + '48ef0979a2bcc3fae14ff30b8a7f5dbf' +) + +build() { + # make binary executable + chmod +x "${srcdir}/${_pkgname}" +} + +package() { + mkdir -p "${pkgdir}/usr/bin/" + cp "${srcdir}/${_pkgname}" "${pkgdir}/usr/bin/${pkgname}" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + cp "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# vim:set ts=2 sw=2 et: