summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa6be2c73e07d1d8e4d9c629ee7b95494aff7e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: eugene hwang <hwang dot eug at gmail dot com>

pkgname=gister-git
_pkgname=gister
pkgver=2.4.0.r8.gabf421c
pkgrel=1
pkgdesc="A command line tool for managing GitHub gists"
arch=('any')
url="https://github.com/weakish/gister"
license=('Apache 2.0')
depends=('curl' 'git' 'gist' 'jq' 'ruby' 'xclip')
optdepends=('legit-git: more streamlined syncing of gist repository'
            'codesearch-git: faster searching of gists')
provides=('gister')
conflicts=('gister')
source=("$_pkgname::git+https://github.com/weakish/gister.git")
sha256sums=('SKIP')

pkgver() {
    cd ${_pkgname}
    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
    install -Dm755 "${srcdir}/${_pkgname}/bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"
}