summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cb634fbf66fee955e569e8e8d0462fab27e02aed (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
# Maintainer: desbma
pkgname=imgur-uploader-git
pkgver=r31.225dba7
pkgrel=3
pkgdesc='A script that uploads an image to imgur and copies the image URL to the clipboard'
arch=('any')
_gitname='Imgur-Uploader'
url="https://github.com/tangphillip/${_gitname}"
license=('MIT')
depends=('curl')
optdepends=('xsel: Copy URL to clipboard'
            'xclip: Alternative to copy URL to clipboard')
conflicts=('imgur')
source=("git+https://github.com/tangphillip/${_gitname}")
md5sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_gitname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "${srcdir}/${_gitname}"
    install -Dm 755 -t "${pkgdir}/usr/bin" imgur
    install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE
}