Skip to content

Instantly share code, notes, and snippets.

@muesli
Last active May 26, 2019 04:26
Show Gist options
  • Save muesli/e85f68add7ef7365a8375b66ab5c09b1 to your computer and use it in GitHub Desktop.
Save muesli/e85f68add7ef7365a8375b66ab5c09b1 to your computer and use it in GitHub Desktop.
telephant PKGBUILD
# Maintainer: MOTT <ted.jameson at pm dot me>
pkgname=telephant-git
pkgver=20190525
pkgrel=1
epoch=
pkgdesc="A lightweight but modern Mastodon client, written in Go & QML"
arch=('x86_64')
url="https://github.com/muesli/telephant"
license=('MIT')
groups=()
depends=('qt5-base')
makedepends=('go' 'pkgconf' 'qt5-tools' 'git' 'libpulse' 'glib2' 'mesa')
checkdepends=()
optdepends=()
provides=("telephant")
conflicts=("telephant")
replaces=()
backup=()
options=()
install=
noextract=()
#source=($pkgname::git://github.com/muesli/telephant.git)
#md5sums=("SKIP")
build() {
export GOPATH="$srcdir"/gopath
export QT_PKG_CONFIG=true
export QT_DIR=/usr
# Qt Bindings
go get -u -v -tags=no_env github.com/therecipe/qt/cmd/...
$(go env GOPATH)/bin/qtsetup -test=false
# Building Telephant
go get -d -v github.com/muesli/telephant
cd gopath/src/github.com/muesli/telephant
$(go env GOPATH)/bin/qtdeploy build desktop .
}
package() {
install -Dm755 "gopath/src/github.com/muesli/telephant/deploy/linux/telephant" "$pkgdir/usr/bin/telephant"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment