# Maintainer: Storm Dragon # Maintainer: Michael Taboada # Included in Slint by Didier Spaier # Note to self run slkbuild then remove from build-barnard.sh 3 lines: # export CFLAGS="-O2 -fPIC" # export CXXFLAGS="-O2 -fPIC" # export SLKCFLAGS="-O2 -fPIC" # the run fakeroot sh build-barnard.sh pkgname="barnard" pkgrel=1slint # pkgver is the output of "sh SLKBUILD" after having uncommented line 37 pkgver=gitc81c8a0 url="https://github.com/bmmcginty/barnard" options=('noextract' 'nosrcpack') startdir=$(pwd) slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "barnard (Accessible command line mumble client.)" "This copy of Barnard and it's associated Gumble library have been" "modified to support usage by blind users." "The original version from Tim Cooper is available at" "https://github.com/layeh/barnard" "This version has been modified by Brandon McGinty-Carroll and is" "available at https://github.com/bmmcginty/barnard" ) # /data/GitHub/barnard is a clone of the GitHub repository. pkgver() { cd /data/GitHub/barnard git pull > /dev/null printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse \ --short HEAD)" echo } #pkgver build(){ rm -rf $startdir/gopath echo "=== download ===" mkdir -p $startdir/gopath/src/github.com/bmmcginty # a clone of the Git repo is used cp -a /data/GitHub/barnard $startdir/gopath/src/github.com/bmmcginty ln -s $startdir/gopath/src/github.com/bmmcginty/barnard $startdir/barnard export GOPATH="${startdir}/gopath" cd $startdir/barnard go get -v -d echo "=== build ===" cd "$startdir/gopath/src/github.com/bmmcginty/barnard" go install \ -gcflags "all=-trimpath=$GOPATH" \ -asmflags "all=-trimpath=$GOPATH" -v mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/share/doc/${pkgname}-$pkgver cp $startdir/gopath/bin/barnard $PKG/usr/bin/ pandoc -s -f gfm -t html5 --metadata=pagetitle:"Barnard console client" \ -o $PKG/usr/share/doc/${pkgname}-$pkgver/README.html \ $startdir/barnard/README.md cp $startdir/barnard/README.md $PKG/usr/share/doc/${pkgname}-$pkgver/ cp $startdir/barnard/barnard-ui $PKG/usr/bin/ }