blob: 848028a8049b332dee61f46f83fd4ce3728f7d20 (
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
28
29
30
31
32
33
34
|
# Contributor: Lex Black <autumn-wind at web dot de>
# Contributor: Antony Male <antony dot male at gmail dot com>
# Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>
_pkgname=gist
pkgname=${_pkgname}-git
pkgver=5.1.0.r1.gab14e27
pkgrel=1
pkgdesc="Potentially the best command line gister"
arch=(any)
url="http://github.com/defunkt/gist"
license=('MIT')
depends=('ruby')
makedepends=('git')
optdepends=("xclip: will put pasted gists url into X selection automagically"
"xsel: put pasted gist's url into X selection automagically")
provides=('gist')
conflicts=('gist')
source=('git+https://github.com/defunkt/gist.git')
md5sums=('SKIP')
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//'
}
package() {
cd $_pkgname
install -Dm755 build/${_pkgname} "${pkgdir}/usr/bin/${_pkgname}"
install -Dm644 build/${_pkgname}.1 "${pkgdir}/usr/share/man/man1/${_pkgname}.1"
install -Dm644 LICENSE.MIT "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|