blob: e7905f91034c00d073f1f64c5d26b9f3edeb770c (
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: Rodrigo Rivas Costa <rodrigorivascosta at gmail dot com>
pkgname=papercraft
pkgver=2.8
pkgrel=1
pkgdesc="A tool to unwrap 3D paper models"
arch=('i686' 'x86_64')
url="http://github.com/rodrigorc/papercraft"
license=('GPL3')
depends=('bzip2' 'shared-mime-info')
makedepends=('git' 'rust')
_commit=v$pkgver
source=("${pkgname}::git+https://github.com/rodrigorc/papercraft.git#commit=$_commit")
sha512sums=('SKIP')
build() {
cd ${srcdir}/${pkgname}
export CFLAGS="$CFLAGS -fno-lto"
export CXXFLAGS="$CXXFLAGS -fno-lto"
cargo build --release
}
package() {
cd ${srcdir}/${pkgname}
install -Dm755 target/release/papercraft ${pkgdir}/usr/bin/papercraft
install -Dm644 src/papercraft.png ${pkgdir}/usr/share/icons/hicolor/192x192/apps/papercraft.png
install -Dm644 distro/papercraft.desktop ${pkgdir}/usr/share/applications/papercraft.desktop
install -Dm644 distro/papercraft.xml ${pkgdir}/usr/share/mime/packages/papercraft.xml
}
|