summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b4ceb7f92543a01745c91809d75694d30f6bb08 (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
# Maintainer: Mario Oenning <mo-son[at]mailbox[dot]org>

_mesonver=$(meson --version)
pkgname=cryptor
pkgver=1.1.0
pkgrel=1
pkgdesc="Simple GUI application for gocryptfs"
arch=('x86_64' 'aarch64')
url="https://github.com/moson-mo/cryptor"
license=('BSD')
depends=('gtk3' 'libgee' 'glib2' 'json-glib')
makedepends=('vala' 'meson')
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('ed3ae63b92f32c4c359b5e6592c4451a643dd106705161b89e7c1ec3f9c6dd4d')

build() {
  arch-meson "$pkgname-$pkgver" build-$_mesonver
  meson compile -C build-$_mesonver
}

package() {
  # binary and translations
  meson install -C build-$_mesonver --destdir "$pkgdir"

  cd "$pkgname-$pkgver"

  # license
  install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"

  # application file
  install -Dm644 "resources/misc/$pkgname.desktop" "$pkgdir/usr/share/applications/org.moson.$pkgname.desktop"
}