summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cfb2d7c996453903ef2e2348c62a21c2cde0ecbb (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: Zoron <zoronlivingston@gmail.com>

pkgname=ppd-editor
pkgver=0.1.1
pkgrel=2
pkgdesc="Editor for 2D paperdoll file"
arch=('any')
url="https://github.com/fralonra/ppd-editor"
license=('MIT')
makedepends=('rust' 'git')
source=("https://github.com/fralonra/$pkgname/archive/v${pkgver}.tar.gz")
md5sums=('39e94a26d96a11160080290848bc487e')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  GIT_COMMIT_HASH=0ddee8e cargo build --release
}

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

  install -Dm755 target/release/ppd-editor        "$pkgdir/usr/bin/ppd-editor"
  install -Dm755 target/release/ppd-viewer        "$pkgdir/usr/bin/ppd-viewer"
  install -Dm644 build/linux/PpdEditor.desktop    "$pkgdir/usr/share/applications/io.github.fralonra.PpdEditor.desktop"
  install -Dm644 build/linux/PpdViewer.desktop    "$pkgdir/usr/share/applications/io.github.fralonra.PpdViewer.desktop"
  install -Dm644 build/logo/ppd-editor.svg        "$pkgdir/usr/share/icons/hicolor/scalable/apps/io.github.fralonra.PpdEditor.svg"
  install -Dm644 build/logo/ppd-viewer.svg        "$pkgdir/usr/share/icons/hicolor/scalable/apps/io.github.fralonra.PpdViewer.svg"
}