summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 905481585282c468ea6fcc000473bedad94f0662 (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
30
31
32
33
34
35
36
# Maintainer: Meade Kincke <thedarkula2049@gmail.com>
# Maintainer: Emily Kincke <marleybrush5@gmail.com>
pkgname=brewstillery
pkgver=8.1.0
pkgrel=1
pkgdesc="BrewStillery is a brewer's, vintner's, and distiller's calculator. It has a multitude of great functions, such as calculating ABV, determining carbonation, and total sparge water needed."
url="https://monkeylog.in"
arch=('x86_64')
license=('AGPL3')
depends=('gtk3' 'ttf-roboto')
makedepends=('git' 'cargo')
provides=('brewstillery')
conflicts=('brewstillery')
source=("https://gitlab.com/MonkeyLog/BrewStillery/-/archive/$pkgver/BrewStillery-$pkgver.tar.gz")
sha512sums=('391b0dc658977d1fdb6e2e786912cbcbe720f556256482273c365ff2be17b0820e71c8ab91c387b311469dc6c553af3a1e00ae31e3ade689914176d54db5dd15')

build() {
	cd $srcdir/BrewStillery-$pkgver
	cargo build --release
}

package() {
	cd $srcdir/BrewStillery-$pkgver/target/release
	install -Dm755 BrewStillery "$pkgdir/usr/bin/BrewStillery"
	cd $srcdir/BrewStillery-$pkgver/Desktop
	install -Dm644 BrewStillery.desktop "$pkgdir/usr/share/applications/BrewStillery.desktop"
	cd $srcdir/BrewStillery-$pkgver/media
	install -Dm644 BrewStilleryIcon.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/BrewStillery.svg"
	install -Dm644 BrewStilleryLogo.png "$pkgdir/usr/share/BrewStillery/BrewStilleryLogo.png"
	cd $srcdir/BrewStillery-$pkgver/media/glassware
	install -dm755 "$pkgdir/usr/share/BrewStillery/glassware/"
	install -Dm644 *.png "$pkgdir/usr/share/BrewStillery/glassware/"
	cd $srcdir/BrewStillery-$pkgver/media/buttons
	install -dm755 "$pkgdir/usr/share/BrewStillery/buttons/"
	install -Dm644 *.png "$pkgdir/usr/share/BrewStillery/buttons/"
}