-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathexample.php
More file actions
27 lines (20 loc) · 711 Bytes
/
example.php
File metadata and controls
27 lines (20 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require_once __DIR__ . '/vendor/autoload.php';
$control = new \wdm\debian\control\StandardFile();
$control
->setPackageName("my-package-name")
->setVersion("0.1.1")
->setDepends(array("php5", "php5-cli", "php5-xsl"))
->setInstalledSize(4096)
->setMaintainer("Walter Dal Mut", "walter.dalmut@corley.it")
->setProvides("my-package-name")
->setDescription("My software description");
;
$packager = new \wdm\debian\Packager();
$packager->setOutputPath(__DIR__ . "/out");
$packager->setControl($control);
$packager->mount(__DIR__ . "/../../diff", "/my-differ");
//Creates folders using mount points
$packager->run();
//Get the Debian package command
echo $packager->build();