mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Put the Arch Linux example build source in
This commit is contained in:
parent
8238c259e7
commit
f15644bcb6
4 changed files with 63 additions and 4 deletions
|
|
@ -264,11 +264,11 @@ if ($options['aur']) {
|
|||
|
||||
$b2sums = function_exists('b2sum') ? [
|
||||
b2sum("{$tar_destination}.gz"),
|
||||
b2sum(__DIR__ . '/arch/snappymail.sysusers'),
|
||||
b2sum(__DIR__ . '/arch/snappymail.tmpfiles')
|
||||
b2sum(__DIR__ . '/build/arch/snappymail.sysusers'),
|
||||
b2sum(__DIR__ . '/build/arch/snappymail.tmpfiles')
|
||||
] : [];
|
||||
|
||||
file_put_contents('arch/.SRCINFO', 'pkgbase = snappymail
|
||||
file_put_contents('build/arch/.SRCINFO', 'pkgbase = snappymail
|
||||
pkgdesc = modern PHP webmail client
|
||||
pkgver = '.$package->version.'
|
||||
pkgrel = 1
|
||||
|
|
@ -291,7 +291,7 @@ if ($options['aur']) {
|
|||
pkgname = snappymail
|
||||
');
|
||||
|
||||
$file = __DIR__ . '/arch/PKGBUILD';
|
||||
$file = __DIR__ . '/build/arch/PKGBUILD';
|
||||
if (is_file($file)) {
|
||||
$PKGBUILD = file_get_contents($file);
|
||||
$PKGBUILD = preg_replace('/pkgver=[0-9.]+/', "pkgver={$package->version}", $PKGBUILD);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue