summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b298bbbfbb03d366c88c59c31c7d56aaae027019 (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
pkgname='hastebin-git'
pkgver=1.2.r0.gb50e403
pkgrel=1
pkgdesc='Upload data to hastebin via stdin'
license=('GPL2')
url='https://github.com/kevr/hastebin'
arch=('any')
depends=('python' 'python-requests')
conflicts=("${pkgname%-git}")
optdepends=('xclip: default --clip-command')
makedepends=('git')
source=("git+${url}")
sha256sums=('SKIP')

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

package()
{
    cd "${pkgname%-git}"
    install -Dm755 "${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
}