You are not logged in.
https://torrentfreak.com/magnetico-a-pe … wn-170409/
https://aur.archlinux.org/packages/magnetico-git
https://github.com/boramalper/magnetico
Last edited by Xelvet (2019-05-10 17:08:59)
Offline
Usually converting a git package to a stable package would be simple but magnetico-git has not been updated since the package was rewritten in go.
Also the upstream deps have an issue https://github.com/boramalper/magnetico/issues/194 which would is also present in the v0.7.2 tag.
Offline
yes has been rewritten in gogo..
Offline
This builds but needs work.
pkgname=magnetico-git
_pkgname=magnetico
pkgver=v0.7.2.r3.g88df49c
pkgrel=1
pkgdesc="Autonomous (self-hosted) BitTorrent DHT search engine suite"
arch=('x86_64')
#options=('!strip')
url="http://labs.boramalper.org/magnetico/"
license=('AGPL3')
depends=('glibc')
makedepends=('git' 'go-pie' 'dep' 'go-bindata')
provides=('magnetico')
source=("git+https://github.com/boramalper/magnetico.git")
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare(){
export GOPATH="$srcdir"/go
mkdir -p go/src/github.com/boramalper
ln -rTsf $_pkgname go/src/github.com/boramalper/magnetico
sed -i '62d' $_pkgname/Gopkg.toml #FIXME
}
build() {
cd go/src/github.com/boramalper/magnetico
export GOPATH="${srcdir}/go"
dep ensure -v #CHECKME
cd cmd/magneticod
go build
cd ../magneticow
go-bindata -o="bindata.go" -prefix="data/" -pkg="main" data/...
go build
}
package() {
cd $_pkgname/
install -Dm 755 cmd/magneticod/magneticod "$pkgdir"/usr/bin/magneticod #CHECKME
install -Dm 755 cmd/magneticow/magneticow "$pkgdir"/usr/bin/magneticow
}
# vim:set ts=2 sw=2 et:
Offline
Thx.. I'll try it later on.
Offline