This commit is contained in:
30
PKGBUILD
Normal file
30
PKGBUILD
Normal file
@@ -0,0 +1,30 @@
|
||||
# Maintainer: Yi-Ting Shih <ytshih@it.cs.nycu.edu.tw>
|
||||
pkgname=vm
|
||||
pkgver=1.0.0rc1
|
||||
pkgrel=1
|
||||
pkgdesc="A QEMU VM management tool"
|
||||
arch=("x86_64")
|
||||
url="https://gitea.konchin.com/package/vm"
|
||||
license=("Apache")
|
||||
makedepends=()
|
||||
depends=('jsonnet' 'qemu-base')
|
||||
provides=('vm')
|
||||
source=()
|
||||
|
||||
package() {
|
||||
cd "$srcdir" || exit 1
|
||||
install -Dm755 share/startvm.sh share/stopvm.sh \
|
||||
-t "$pkgdir/usr/share/$pkgname/"
|
||||
install -Dm644 lib/qemu.libsonnet \
|
||||
-t "$pkgdir/usr/lib/$pkgname/"
|
||||
|
||||
install -Dm755 vm "$pkgdir/usr/bin/vm"
|
||||
|
||||
install -Dm644 "${pkgname}@.service" \
|
||||
"$pkgdir/var/lib/.config/systemd/user/${pkgname}@.service"
|
||||
install -Dm644 "${pkgname}.sysusers" "$pkgdir/usr/lib/sysusers.d/${pkgname}.conf"
|
||||
|
||||
install -Dm755 -d "$pkgdir/var/lib/$pkgname/pflash"
|
||||
install -Dm755 -d "$pkgdir/var/lib/$pkgname/iso"
|
||||
install -Dm755 -d "$pkgdir/var/lib/$pkgname/img"
|
||||
}
|
||||
Reference in New Issue
Block a user