summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b4a0cca9063d1133d9b71abc46eab31fa6c8e8e1 (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
# Maintainer: sudokode <sudokode@gmail.com>

pkgname=elmer
pkgver=1.0.2.r0.gfb6fc12
pkgrel=1
pkgdesc="Robust frontend to wget and/or curl for various pastebin services"
arch=('any')
url="http://github.com/sudokode/elmer"
license=('custom:SPL')
makedepends=('git')
depends=('perl>=5.10' 'perl-uri')
optdepends=('wget: pasting with wget'
            'xclip: reading from and printing to X buffer')
source=("$pkgname::git://github.com/sudokode/elmer-old.git")
sha256sums=('SKIP')

pkgver() {
  cd $pkgname

  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd $pkgname

  install -D -m755 $pkgname "$pkgdir"/usr/bin/$pkgname
  install -D -m755 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

# vim:set ts=2 sw=2 et: