summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c75171d1359d77b067736d2d9ed5eaa279bb4717 (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
60
# Maintainer: Lukas Probsthain <lukas.probsthain@google.com>
pkgdesc="A GUI for Modem-Manager. Build from source with patches."
url='https://linuxonly.ru/page/modem-manager-gui/'

pkgname='modem-manager-gui-hg'
_pkgname="${pkgname%-hg}"
pkgver=r85+.3f6d6c4ee74c+
arch=('x86_64')
pkgrel=2
license=('GPL3')

conflicts=(modem-manager-gui)
provides=(modem-manager-gui)

makedepends=(
        mercurial
)

depends=(
	gtk3
	glib2
	gdbm
	po4a
	itstool
	gtkspell3
)

source=("${_pkgname}::hg+http://hg.code.sf.net/p/modem-manager-gui/code"
        "fix_notification_segfault.patch"
        "fix_segfault_on_DNS_entries.patch")

sha256sums=('SKIP'
            '593ba269cef6168c14e4bdd5098753b3603a78fe702cd20bd634cdd213198114'
            '2a21a7ab4ae78e4296a28e46a337eee042a8d7855a8af5d116ebcfcd989e9892')

pkgver() {
  cd "${_pkgname}"
  printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

prepare() {
 cd "${_pkgname}"
 patch --forward --strip=1 --input="${srcdir}/fix_segfault_on_DNS_entries.patch"
 patch --forward --strip=1 --input="${srcdir}/fix_notification_segfault.patch"
}

build() {
  cd "${_pkgname}"
  #meson build
  #cd build
  #ninja
  sh configure
  make
}


package() {
  cd "${_pkgname}"
  make DESTDIR="${pkgdir}" install
}