diff options
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a951530d1a74 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = bfile-cli + pkgdesc = The blek! File CLI + pkgver = 1.0.0 + pkgrel = 1 + url = https://git.blek.codes/blek/bfile_cli + arch = i686 + arch = pentium4 + arch = x86_64 + arch = arm + arch = armv7h + arch = armv6h + arch = aarch64 + arch = riscv64 + license = GPL3 + makedepends = go>=1.21.3 + depends = pacman>5 + depends = git + provides = bfile-cli + conflicts = bfile-cli + options = !lto + source = bfile-cli-1.0.0.tar.gz::https://git.blek.codes/blek/bfile_cli/archive/1.0.0.tar.gz + sha256sums = 470022e1a77a0fbd864c251cb3bbab45c568a3f7985643e3b39add5f4299b31a + +pkgname = bfile-cli diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8eba3929adea --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: blek! <me@blek.codes> +pkgname=bfile-cli +pkgver=1.0.0 +pkgrel=1 +pkgdesc='The blek! File CLI' +arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64') +url='https://git.blek.codes/blek/bfile_cli' +provides=('bfile-cli') +conflicts=('bfile-cli') +options=(!lto) +license=('GPL3') +depends=( + 'pacman>5' + 'git' +) +makedepends=('go>=1.21.3') +source=("${pkgname}-${pkgver}.tar.gz::https://git.blek.codes/blek/bfile_cli/archive/${pkgver}.tar.gz") +sha256sums=('470022e1a77a0fbd864c251cb3bbab45c568a3f7985643e3b39add5f4299b31a') + +build() { + export GOPATH="$srcdir"/gopath + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_ENABLED=1 + + cd "${srcdir}/bfile_cli" + go build . +} + +package() { + cd "${srcdir}/bfile_cli" + install -Dm755 bfile_cli "${pkgdir}/usr/bin/bfile_cli" +} |