diff options
author | Michael Darr | 2020-02-15 16:03:58 -0800 |
---|---|---|
committer | Michael Darr | 2020-02-15 16:03:58 -0800 |
commit | ea6ee21adf026b73333ca49af2ce43697eb6b235 (patch) | |
tree | c753ae468de5f04450a36560dd2999421e23bdd8 | |
download | aur-ea6ee21adf026b73333ca49af2ce43697eb6b235.tar.gz |
Initial commit
Signed-off-by: Michael Darr <michael.e.darr@gmail.com>
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 27 |
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..88e7a2f4f741 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = ahab + pkgdesc = Dockerize your project, git style + pkgver = 0.1 + pkgrel = 1 + url = https://github.com/MichaelDarr/ahab + arch = any + license = GPL3 + makedepends = git + makedepends = go>=1.13 + depends = docker>=1.19 + conflicts = ahab-git + source = ahab-0.1.tar.gz::https://github.com/MichaelDarr/ahab/archive/v0.1.tar.gz + sha256sums = 364cb92fbe353b3a97f8047b377aa814d6d4990838bc3ea41c7ddec144619f15 + +pkgname = ahab + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..9dda6bc00e65 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar.xz +*.tar.lz +*.tar.gz +/ahab +/pkg +/src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3a46a43d4369 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Michael Darr <michael.e.darr@gmail.com> +pkgname="ahab" +pkgver=0.1 +pkgrel=1 +pkgdesc="Dockerize your project, git style" +arch=('any') +url="https://github.com/MichaelDarr/ahab" +license=('GPL3') +depends=('docker>=1.19') +makedepends=( + 'git' + 'go>=1.13') +conflicts=('ahab-git') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/MichaelDarr/ahab/archive/v${pkgver}.tar.gz") +sha256sums=('364cb92fbe353b3a97f8047b377aa814d6d4990838bc3ea41c7ddec144619f15') + +build() { + cd "$srcdir/${pkgname}-${pkgver}" + EXTRA_GOFLAGS="-buildmode=pie -gcflags all=-trimpath=${PWD} -asmflags all=-trimpath=${PWD}" \ + LDFLAGS="-linkmode external -extldflags \"${LDFLAGS}\"" \ + make build +} + +package() { + cd "$srcdir/${pkgname}-${pkgver}" + make DESTDIR="$pkgdir" PREFIX=/usr install +} |