summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5ef00dac2185d9db90ec308fdc65ede3f799185 (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
# Maintainer: Jose Luis <joseluis.tirado@gmail.com>
# Maintainer: Plague-doctor <plague at privacyrequired dot com>

pkgname=dnglab-git
_pkgname=dnglab
pkgver=0.5.1
pkgrel=1
pkgdesc="A camera RAW to DNG file format converter."
arch=(any)
url="https://github.com/dnglab/dnglab"
license=(GPL2)
depends=()
makedepends=(git rust)

source=("git+https://github.com/dnglab/dnglab.git")
sha256sums=('SKIP')

build() {
    cd "$srcdir/$_pkgname"
    git checkout tags/v$pkgver -b build-$pkgver
    cargo build --release
}

package() {
    install -d "$pkgdir/usr/bin"
    install -Dm755 "$srcdir/$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin"
}