-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
PKGBUILD
42 lines (38 loc) · 1.09 KB
/
PKGBUILD
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
38
39
40
41
42
# Maintainer: Hermann Höhne <[email protected]>
pkgname=purple-gowhatsapp-git
_pkgnam=${pkgname%-git}
pkgver=1.12.0
pkgrel=3
pkgdesc="A libpurple/Pidgin plugin for WhatsApp, powered by whatsmeow"
arch=('x86_64' 'i686')
url="https://github.com/hoehermann/purple-gowhatsapp"
license=('GPLv3')
groups=()
depends=('libpurple' 'opusfile' 'gdk-pixbuf2' 'webp-pixbuf-loader')
makedepends=('git' 'go' 'cmake' 'make' 'pkg-config')
provides=("${_pkgnam}")
conflicts=("${_pkgnam}")
install=
source=("${_pkgnam}::git+https://github.com/hoehermann/purple-gowhatsapp.git#tag=latest")
noextract=()
sha256sums=('SKIP')
pkgver() {
export GOPATH="$srcdir/${_pkgnam}/build/src/go/go"
cd "$srcdir/${_pkgnam}"
bash version.sh "$srcdir/${_pkgnam}/build"
}
prepare() {
git -C "$srcdir/${_pkgnam}" submodule update --init
mkdir -p "$srcdir/${_pkgnam}/build"
cd "$srcdir/${_pkgnam}/build"
cmake -G "Unix Makefiles" ..
cmake --build . --target download-modules || true
}
build() {
cd "$srcdir/${_pkgnam}/build"
cmake --build .
}
package() {
cd "${srcdir}/${_pkgnam}/build"
make DESTDIR="$pkgdir/" install/strip
}