diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..478a3b2fa31b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = mabel + pkgdesc = A fancy BitTorrent client for the terminal + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/mr-karan/mabel + arch = any + license = GPL3 + makedepends = go + provides = mabel + conflicts = mabel-git + source = https://github.com/smmr-software/mabel/archive/refs/tags/v0.1.0.tar.gz + sha256sums = df09ffd7867cc1af020ad5bb9a34240c48ec938a60b837c44c536a5217ed0ec7 + +pkgname = mabel diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9a174fc23510 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch> +pkgname=mabel +pkgver=0.1.0 +pkgrel=1 +pkgdesc="A fancy BitTorrent client for the terminal" +arch=('any') +url="https://github.com/mr-karan/mabel" +license=('GPL3') +makedepends=('go') +provides=("${pkgname}") +conflicts=("${pkgname}-git") +options=() +source=("https://github.com/smmr-software/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('df09ffd7867cc1af020ad5bb9a34240c48ec938a60b837c44c536a5217ed0ec7') +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" + BUILD_DATE=$(date '+%Y-%m-%d %H:%M:%S') + go build -o build/${pkgname} -ldflags="-X 'main.buildVersion=${pkgver}' -X 'main.buildDate=${BUILD_DATE}'" ./ +} + +package() { + cd "${pkgname}-${pkgver}" + mkdir -p "$pkgdir"/usr/bin/ + install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm755 build/"${pkgname}" "${pkgdir}"/usr/bin/"${pkgname}" + install -Dm644 README.md "${pkgdir}"/usr/share/doc/"${pkgname}"/README.md +} |