summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcad88521ebd45c8df62540a3b014e7a58c07a3d (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
# Maintainer: Wasabi <wasabithumbs@gmail.com>
pkgbase="justin"
pkgname="${pkgbase}"
pkgver="0.0.1"
pkgrel=1
pkgdesc="A minimal AUR helper written in C with support for installation of legacy versions"
arch=('any')
url="https://github.com/WasabiThumb/justin"
license=('Apache-2.0')
depends=('sudo' 'libgit2' 'curl' 'pacman' 'json-c')
makedepends=('base-devel' 'cmake' 'git')
source=("https://github.com/WasabiThumb/justin/archive/refs/tags/${pkgver}.tar.gz")
md5sums=("0a19b6bb7793c30938196f5776ea00ea")
options=(!strip !debug)

build () {
	cd "$srcdir/$pkgname-$pkgver"
	cmake -G "Unix Makefiles" -B ./build -DCMAKE_BUILD_TYPE=Release
	cd build && make
}

package() {
	cd "$srcdir/$pkgname-$pkgver/build"
	install -Dm 755 "$srcdir/$pkgname-$pkgver/build/justin" "$pkgdir/usr/bin/justin"
	install -Dm 644 "$srcdir/$pkgname-$pkgver/README.md" "$pkgdir/usr/share/doc/$pkgname"
	install -Dm 644 "$srcdir/$pkgname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname"
}