blob: c91fa381ce05913e6df11bd02303ef7ee5c6bc55 (
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
38
39
40
41
42
43
|
# Maintainer: Yuexuan Gu <lastavengers@outlook.com>
pkgname=ricin-git
_pkgname=Ricin
_submodule=tox-vapi
pkgver=0.385.2f01896
pkgrel=1
pkgdesc="Lightweight and Fully-Hackable Tox client powered by Vala & Gtk3"
url="https://github.com/RicinApp/Ricin"
arch=('i686' 'x86_64')
license=('GPL3')
makedepends=('meson' 'ninja' 'vala')
depends=('gtk3' 'toxcore' 'glib2' 'json-glib' 'libsoup' 'libnotify', 'libconfig')
source=("git+https://github.com/RicinApp/Ricin.git"
"git+https://github.com/RicinApp/tox-vapi.git")
sha256sums=('SKIP' 'SKIP')
provides=('ricin')
conflicts=('ricin')
prepare() {
cd "${srcdir}/${_pkgname}"
git submodule init
git config submodule.${_submodule}.url $srcdir/${_submodule}
git submodule update
echo 'compile: ./build/' >> Makefile
echo ' type ninja-build 2>/dev/null && ninja-build -C build || ninja -C build' >> Makefile
}
pkgver() {
cd "${srcdir}/${_pkgname}"
echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}
build() {
cd "${srcdir}/${_pkgname}"
mkdir build
meson . build
make compile
}
package() {
install -Dm755 "${srcdir}/${_pkgname}/build/${_pkgname}" "${pkgdir}/usr/bin/ricin"
}
|