summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fcbad08b4d7847bb4fe22a932251f618aba6d310 (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
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jarek Sedlacek <JarekSedlacek@gmail.com>
# Contributor: Erdbeerkaese <erdbeerkaese underscore arch at gmail dot com>

pkgname=sparkleshare
_pkgname=SparkleShare
pkgver=3.38
pkgrel=1
pkgdesc="Collaboration and sharing tool based on git written in C Sharp"
arch=('any')
url="https://www.sparkleshare.org/"
license=('GPL3')
depends=('webkit2-sharp' 'notify-sharp-3' 'curl' 'git-lfs' 'openssh' 'gvfs')
makedepends=(git meson)
_commit=23d7166012e6fcf9ad6b6d317217908bbc0f51c8
source=("git+https://github.com/hbons/SparkleShare.git#commit=$_commit"
        "0001-Use-gtk-status-icon-by-default.patch")
sha256sums=('SKIP'
            '6565b373198faccade6de323a372ed4f9b26bdceefb2ce886df953eebe464b8f')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/-/+/g'
}

prepare() {
  cd $_pkgname

  # Fix build
  sed -i '/post-install.sh/d' meson.build

  # Fix AppStream metadata validation
  # https://github.com/hbons/SparkleShare/pull/1882
  git cherry-pick -n e0c4e972d0b52ef71b0fafe6fb33511e429af955

  # Don't use legacy path for AppStream metainfo file
  # https://github.com/hbons/SparkleShare/pull/1883
  git cherry-pick -n e6775a462a8c56926c9364ae4e4fe2bdbfc08798

  # Add X-AppStream-Ignore property to autostart file
  # https://github.com/hbons/SparkleShare/pull/1884
  echo 'X-AppStream-Ignore=true' >>SparkleShare/Linux/SparkleShare.Autostart.desktop

  # Use gtk status icon by default
  patch -Np1 -i ../0001-Use-gtk-status-icon-by-default.patch
}

build() {
  arch-meson $_pkgname build
  ninja -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}