blob: 12e463da33bec4a6d11fb6bbe5776fe6845bb5f9 (
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: desbma
pkgname=imgur-uploader-git
pkgver=r36.3e029bf
pkgrel=1
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')
makedepends=('git')
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
}
|