summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e68d2e604db7e93302fb16d0ae23e8db32a9589b (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
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: carstene1ns - https://git.io/ctPKG

pkgname=gtkhash-nemo-git
pkgver=1.5.r35.ge85ab4d
pkgrel=1
pkgdesc="Nemo filemanager plugin for computing message digests or checksums"
arch=(x86_64 i686)
url="https://github.com/gtkhash/gtkhash"
license=(GPL2)
depends=(nemo gtkhash-git)
makedepends=(git)
conflicts=(gtkhash-nemo)
provides=(gtkhash-nemo)
source=("git+https://github.com/gtkhash/gtkhash.git")
sha256sums=('SKIP')

pkgver() {
  cd gtkhash
  git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd gtkhash
  ./autogen.sh
}

build() {
  cd gtkhash
  ./configure \
    --prefix=/usr \
    --disable-schemas-compile \
    --disable-gtkhash \
    --enable-nemo \
    --enable-linux-crypto \
    --enable-nettle

  make
}

package() {
  make -C gtkhash/src/nautilus DESTDIR="${pkgdir}" install
}