From ddb7225fe28813f118ebe28cbf7a009c9e47b405 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sat, 8 May 2021 18:16:54 +0200 Subject: [PATCH] Initial upload: antidot 0.6.2-1 --- antidot/.SRCINFO | 14 ++++++++++++++ antidot/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 antidot/.SRCINFO create mode 100644 antidot/PKGBUILD diff --git a/antidot/.SRCINFO b/antidot/.SRCINFO new file mode 100644 index 0000000..ce2ea68 --- /dev/null +++ b/antidot/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = antidot + pkgdesc = Cleans up your $HOME from those pesky dotfiles + pkgver = 0.6.2 + pkgrel = 1 + url = https://github.com/doron-cohen/antidot + arch = x86_64 + license = MIT + makedepends = go + depends = glibc + source = https://github.com/doron-cohen/antidot/archive/refs/tags/v0.6.2.tar.gz + b2sums = a203c50f8e5f407769d3897ac6965c01b8291757bc0b2ce2e2b6a0b996dabf9e0fed09e69c6db7157bed48171bdeb9d1fcb4dd6b6e2b2bbd5d6f7b3264f12202 + +pkgname = antidot + diff --git a/antidot/PKGBUILD b/antidot/PKGBUILD new file mode 100644 index 0000000..4633ea2 --- /dev/null +++ b/antidot/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Giovanni Harting <539@idlegandalf.com> + +pkgname=antidot +pkgver=0.6.2 +pkgrel=1 +pkgdesc='Cleans up your $HOME from those pesky dotfiles' +arch=('x86_64') +url="https://github.com/doron-cohen/$pkgname" +license=('MIT') +depends=('glibc') +makedepends=('go') +source=("https://github.com/doron-cohen/$pkgname/archive/refs/tags/v$pkgver.tar.gz") +b2sums=('a203c50f8e5f407769d3897ac6965c01b8291757bc0b2ce2e2b6a0b996dabf9e0fed09e69c6db7157bed48171bdeb9d1fcb4dd6b6e2b2bbd5d6f7b3264f12202') + +prepare(){ + cd "$pkgname-$pkgver" + mkdir -p build/ +} + +build() { + cd "$pkgname-$pkgver" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw" + go build -o build +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 build/$pkgname "$pkgdir"/usr/bin/$pkgname + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} +