diff options
author | Erich Eckner <git@eckner.net> | 2021-05-18 09:34:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-05-18 09:34:58 +0200 |
commit | 7d930aff06a84264df421c3c32e9b0eadab20ca4 (patch) | |
tree | 2db85f0163ff1ecb5332f104509bf683725db259 /slack-term/PKGBUILD | |
parent | c5b427ba90669c9c1e8d1a8d92590f44e0a2ad3d (diff) | |
download | archlinuxewe-7d930aff06a84264df421c3c32e9b0eadab20ca4.tar.xz |
slack-term neu
Diffstat (limited to 'slack-term/PKGBUILD')
-rw-r--r-- | slack-term/PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/slack-term/PKGBUILD b/slack-term/PKGBUILD new file mode 100644 index 000000000..262924546 --- /dev/null +++ b/slack-term/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Yigit Dallilar <yigit.dallilar@gmail.com> +# Prev. Maintainer: orumin <dev at orum.in> + +pkgname=slack-term +pkgver=0.5.0 +pkgrel=1 +pkgdesc="Slack client for your terminal" +arch=('i686' 'pentium4' 'x86_64') +url="https://github.com/erroneousboat/slack-term" +source=("slack-term-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" + "slack-term.json") +noextract=("slack-term-${pkgver}.tar.gz") +license=('MIT') +conflicts=('slack-term-bin') +options=() +makedepends=("go") +md5sums=('77c64a2aac37d65cbcfe2cecab043b9f' + '9cdd35c2d48f6d899333ab3721a6464b') + + +build() { + + export GOPATH=$(pwd) + reldir=src/github.com/erroneousboat + + mkdir -p ${srcdir}/${reldir} + ln -s $(pwd)/slack-term-${pkgver}.tar.gz ${srcdir}/${reldir} + cd ${srcdir}/${reldir} + tar zxvf slack-term-${pkgver}.tar.gz + mv slack-term-${pkgver} slack-term + cd slack-term + make build-linux + +} + +package() { + + reldir=src/github.com/erroneousboat + + install -Dm755 ${srcdir}/${reldir}/slack-term/bin/slack-term-linux-amd64 ${pkgdir}/usr/bin/slack-term + install -Dm644 ${srcdir}/${reldir}/slack-term/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE + install -Dm644 slack-term.json ${pkgdir}/etc/slack-term.json + +} + +# vim:set ts=4 sw=4 et: |