This commit is contained in:
28
PKGBUILD
Normal file
28
PKGBUILD
Normal file
@@ -0,0 +1,28 @@
|
||||
# Maintainer: Yi-Ting Shih <ytshih@it.cs.nycu.edu.tw>
|
||||
pkgname=vm
|
||||
pkgver=1.0.0
|
||||
pkgrel="rc1"
|
||||
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/src" || exit 1
|
||||
install -Dm755 share "$pkgdir/usr/share/$pkgname"
|
||||
install -Dm755 lib "$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