summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2be804f868952a427a281946ea3835982cb274b6 (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
# Maintainer: Danilo Bargen <aur at dbrgn dot ch>
pkgname=galerio
pkgver=1.2.0
pkgrel=1
pkgdesc="A simple generator for static HTML flexbox galleries"
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/dbrgn/galerio"
license=('MIT' 'Apache')
depends=()
makedepends=('rust' 'cargo')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dbrgn/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('639e3a011e70e32343b1ea8bbdcca15783f05a65c6027dbace0a6c075aad4a00')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  env CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=target cargo build --release --locked
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  # Install binary
  install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"

  # Install MIT license
  install -Dm 644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
}

# vim:set ts=2 sw=2 et: