# Maintainer: Josephine Pfeiffer <hi@josie.lol>
pkgname=cockpit-pacman
pkgver=0.1.0
pkgrel=1
pkgdesc="Cockpit plugin for Arch Linux package management via libalpm"
arch=('x86_64')
url="https://github.com/pfeifferj/cockpit-pacman"
license=('GPL-3.0-or-later')
depends=('cockpit' 'pacman')
makedepends=('npm' 'rust' 'cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('SKIP')

build() {
    cd "$pkgname-$pkgver"
    make build
}

package() {
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir" install
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
