1
0
mirror of https://github.com/balkian/draft-bin.git synced 2024-12-22 01:08:13 +00:00
draft-bin/PKGBUILD
J. Fernando Sánchez e4e9b2ebb6 Bump to v0.11.0
2018-03-19 09:47:17 +01:00

27 lines
765 B
Bash

# Maintainer: larte <lauri.arte@gmail.com>
# Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>
pkgname=draft-bin
pkgdesc="Draft client"
pkgver=0.11.0
pkgrel=1
arch=('i686' 'x86_64')
url="http://draft.sh"
license=('mit')
conflicts=()
_draft_file=draft-$pkgver
source_i686=($_draft_file::https://azuredraft.blob.core.windows.net/draft/draft-v0.11.0-linux-386.tar.gz )
source_x86_64=($_draft_file::https://azuredraft.blob.core.windows.net/draft/draft-v0.11.0-linux-amd64.tar.gz )
md5sums_i686=('a94bf6eaaaa62b287d7e50ec5b248223')
md5sums_x86_64=('253e4c3de75bc212c56f2c29a31ecdc1')
package() {
FOLDER="linux-386"
if [[ $CARCH -eq 'x86_64' ]];
then
FOLDER="linux-amd64"
fi
install -Dm 755 "$srcdir/$FOLDER/draft" "$pkgdir/usr/bin/draft"
}