summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8350e1e5f92899756326558c10492fdf5d670ee5 (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: Booglejr <rooty (a+) kwtechllc (dot) com>
pkgname=aespresso
pkgver=0.1.1
pkgrel=1
epoch=0
pkgdesc="A Gtk3 frontend for archlinux's archlinux-java script."
arch=('x86_64')
url="https://github.com/Booglejr/$pkgname/releases"
license=('custom:BSD')
depends=('gtk3' 'lxqt-sudo')
makedepends=('rust')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Booglejr/$pkgname/archive/v${pkgver}.tar.gz")
md5sums=('1ba647355812a2ca9fdb26aa03d1b18c')


build() {
	cd "$pkgname-$pkgver"
	cargo build --release --bin ${pkgname} --target-dir .
}

package() {
	cd "$pkgname-$pkgver"
	cd release
	install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
	cd ..
	install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
	install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}