summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2c9a7586765cf973b5978135ec66ea1ac0f4ecd (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
31
32
33
34
35
36
37
# Maintainer: Malah <malah@neuf.fr>
# Contributor: kaptoxic

pkgname=purple-discord-git
_pkgname=purple-discord
pkgver=v0.0.r868.b925382
_pkgver=v0.0.
pkgrel=1
pkgdesc="A libpurple/Pidgin plugin for Discord."
url='https://github.com/EionRobb/purple-discord'
arch=(any)
license=('GPL3')
makedepends=('git' 'imagemagick' 'librsvg' 'gettext')
depends=('libpurple' 'json-glib' 'qrencode')
replaces=('purple-discord')
provides=('purple-discord')
conflicts=('purple-discord')
source=('purple-discord::git+https://github.com/EionRobb/purple-discord.git')
sha512sums=('SKIP')

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

build() {
  cd "$srcdir/${_pkgname}/"
  make
}

package() {
  cd "$srcdir/${_pkgname}/"
  make DESTDIR="$pkgdir" install
  #installing license
  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}