summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88ce80a8135d98cfad53f796b7ba2c32a84d27c7 (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
# Maintainer: Alexandre Pujol <alexandre@pujol.io>

pkgname='harvest'
_tag='1ef58c952d54924a8afc11afe1a2b8d126be5a62' # git rev-parse v${pkgver}
pkgver=0.8
pkgrel=1
pkgdesc='Tool to sort large collections of files according to common typologies'
arch=('x86_64')
url='https://github.com/dyne/harvest'
license=('GPL3')
makedepends=('git' 'lua-inspect' 'luajit' 'luastatic' 'pkg-config')
source=("git+https://github.com/dyne/harvest.git#tag=$_tag")
sha512sums=('SKIP')

prepare() {
  cd "$pkgname"
  git submodule update --init --recursive
}

build() {
  cd "$pkgname"
  make PREFIX=/usr LDADD="/usr/lib/libluajit-5.1.so -lm -ldl"
}

package() {
  cd "$pkgname"
  install -Dm755 "$pkgname" "$pkgdir"/usr/bin/$pkgname
}