summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61867547259b2e0cd14dcda965946f38a694f9af (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: sQVe <oskargrunning@gmail.com>

arch=('any')
depends=('weechat')
license=('MIT')
sha512sums=('SKIP')
pkgdesc='Compose weechat messages in your $EDITOR'
pkgname=weechat-edit-git
pkgrel=1
pkgver=r8.6aface4
source=('git+https://github.com/keith/edit-weechat.git')
makedepends=('git')
url='https://github.com/keith/edit-weechat'

_gitname='edit-weechat'

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

package() {
  cd "${_gitname}"

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 edit.py "${pkgdir}/usr/lib/weechat/python/edit.py"
}