blob: c7fab26a188a354486e55000e61f486a7b4a520e (
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
44
45
46
47
48
|
# Maintainer: Yuexuan Gu <lastavengers@outlook.com>
pkgname=ricin-git
_pkgname=Ricin
_submodule=tox-vapi
pkgver=0.452.b519ec3
pkgrel=2
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
}
pkgver() {
cd "${srcdir}/${_pkgname}"
echo "0.$(git rev-list --count HEAD).$(git describe --always)"
}
build() {
cd "${srcdir}/${_pkgname}"
mkdir build > /dev/null
if [ -f "/usr/bin/meson" ]; then
meson . build
else
meson.py . build
fi
make release
}
package() {
cd "${srcdir}/${_pkgname}"
install -Dm644 "misc/ricin.desktop" "${pkgdir}/usr/share/applications/ricin.desktop"
install -Dm755 "build/${_pkgname}" "${pkgdir}/usr/bin/ricin"
}
|