| 1 | defpkgbuild(vinix-pkg, |
| 2 | #:pkgname, "vinix-pkg", |
| 3 | #:pkgver, "1.0.0", |
| 4 | #:pkgrel, 2, |
| 5 | #:pkgdesc, "Vinix pkg command for the vpac package repository", |
| 6 | #:arch, [#:any], |
| 7 | #:url, "https://github.com/vlang/vinix", |
| 8 | #:license, "0BSD", |
| 9 | #:depends, ["busybox", "vpac>=1.0.0-2"], |
| 10 | #:source, ["pkg", "70-restore-public-paths.hook", "restore-public-paths"], |
| 11 | #:sha256sums, ["35a291f69a5965bbbbcd4692eea6db4db746324760a46f8fcc8b78f5798858cf", |
| 12 | "317586b314942658a13d69fdfbb92688aa638e1d20c588cff7edbf05d497d573", |
| 13 | "26a9292a251cc71578977a2971ea3f691b5a3ead25987ac59b892a4ec568694e"], |
| 14 | #:check, fn() { |
| 15 | run("sh", "-n", "pkg") |
| 16 | run("sh", "-n", "restore-public-paths") |
| 17 | }, |
| 18 | #:package, fn() { |
| 19 | run("install", "-Dm755", "pkg", string-append(pkgdir(), "/usr/bin/pkg")) |
| 20 | run("install", "-Dm644", "70-restore-public-paths.hook", |
| 21 | string-append(pkgdir(), "/usr/share/libalpm/hooks/70-restore-public-paths.hook")) |
| 22 | run("install", "-Dm755", "restore-public-paths", |
| 23 | string-append(pkgdir(), "/usr/libexec/vinix-restore-public-paths")) |
| 24 | }) |
| 25 | |