# Maintainer: larte # Contributor: Maxwell Pray a.k.a. Synthead pkgname=draft-bin pkgdesc="Draft client" pkgver=0.10.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.10.0-linux-386.tar.gz ) source_x86_64=($_draft_file::https://azuredraft.blob.core.windows.net/draft/draft-v0.10.0-linux-amd64.tar.gz ) md5sums_i686=('c3e02176572b85a609155a7da014b3c4') md5sums_x86_64=('d8c7fe25a6a04232f9b7df4d969e516c') package() { FOLDER="linux-386" if [[ $CARCH -eq 'x86_64' ]]; then FOLDER="linux-amd64" fi install -Dm 755 "$srcdir/$FOLDER/draft" "$pkgdir/usr/bin/draft" }