summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7af8eeaf61cf9a8a04195b3139aa70df74b5f6a8 (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
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: Max Harmathy <max.harmathy@web.de>
# Contributor: Wesley Moore <wes@wezm.net>
pkgname=tootle
pkgver=1.0
_pkgver=${pkgver//_/-}
pkgrel=5
pkgdesc="GTK3 client for Mastodon"
arch=('x86_64' 'aarch64')
url="https://github.com/bleakgrey/tootle"
license=('GPL3')
depends=(
 'glib2'
 'granite'
 'gtk3'
 'hicolor-icon-theme'
 'json-glib'
 'libhandy'
 'libsoup'
)
optdepends=(
 'noto-fonts-emoji: color emoji'
)
makedepends=(
 'cmake'
 'desktop-file-utils'
 'gnome-common'
 'gobject-introspection'
 'hicolor-icon-theme'
 'intltool'
 'meson'
 'ninja'
 'vala'
 'yelp-tools'
)
options=('!libtool')
source=(
 "https://github.com/bleakgrey/$pkgname/archive/${_pkgver}.tar.gz"
 "Use-reason_phrase-instead-of-get_phrase.patch"
 "Adhere-to-GLib.Object-naming-conventions.patch"
)
sha256sums=('e0a0a062b1b72010242f7bb4db97cd71190f23067188b5c07372264d768a0496'
            '06314649f967661defaf5d847a9ecdf4b942299a08613c4f3087afa6ecf5d7fc'
            '84962b788787c075fadaf2fe4e56f104340b6f1386c889df03455a67fcc5f779')

build() {
  cd "${srcdir}/${pkgname}-${_pkgver}"

  patch -p1 < "$startdir/Use-reason_phrase-instead-of-get_phrase.patch"
  patch -p1 < "$startdir/Adhere-to-GLib.Object-naming-conventions.patch"

  arch-meson build
  ninja -C build
}

package() {
  cd "${srcdir}/${pkgname}-${_pkgver}"
  DESTDIR="$pkgdir" ninja -C build install
  ln -s "/usr/bin/com.github.bleakgrey.tootle" "${pkgdir}/usr/bin/tootle"
}