appstream-generator/README.md

59 lines
2.5 KiB
Markdown
Raw Normal View History

# AppStream Generator
2016-03-28 17:59:05 -07:00
AppStream is an effort to provide additional metadata and unique IDs for all software available in a Linux system.
This repository contains the server-side of the AppStream infrastructure, a tool to generate metadata from distribution packages. You can find out more about AppStream distro metadata at [Freedesktop](http://www.freedesktop.org/software/appstream/docs/chap-DistroData.html#sect-AppStream-ASXML).
2016-03-28 18:15:33 -07:00
The AppStream generator is currently primarily used by Debian, but is written in a distribution agnostic way. Backends only need to implement [two interfaces](source/backends/interfaces.d) to to be ready.
If you are looking for the AppStream client-tools, the [AppStream repository](https://github.com/ximion/appstream) is where you want to go.
2016-03-28 17:59:05 -07:00
2016-04-24 08:59:06 -07:00
![AppStream Generator Logo](data/templates/default/static/img/asgen.png "AppStream Generator")
2016-03-28 17:59:05 -07:00
2016-03-08 14:19:20 -08:00
## Development
2016-03-20 14:00:28 -07:00
[![Build Status](https://travis-ci.org/ximion/appstream-generator.svg?branch=master)](https://travis-ci.org/ximion/appstream-generator)
2016-03-08 14:19:20 -08:00
### Build dependencies
* gdc / ldc
* dub [1]
* glib2 (>= 2.46)
* AppStream [2]
* libarchive [3]
* LMDB [4]
2016-03-28 13:40:44 -07:00
* Cairo
* GdkPixbuf 2.0
* RSvg 2.0
2016-04-22 11:44:55 -07:00
* Bower (optional) [5]
2016-03-08 14:19:20 -08:00
[1]: https://code.dlang.org/download
[2]: https://github.com/ximion/appstream
[3]: http://www.libarchive.org/
[4]: http://symas.com/mdb/
2016-04-22 11:44:55 -07:00
[5]: http://bower.io/
On Debian and derivatives of it, all build requirements can be installed using the following command:
```ShellSession
sudo apt install dub libappstream-dev libgdk-pixbuf2.0-dev libarchive-dev \
librsvg2-dev liblmdb-dev libglib2.0-dev libcairo2-dev libcurl4-gnutls-dev
```
2016-03-08 14:19:20 -08:00
### Build instructions
2016-04-22 11:44:55 -07:00
Ensure you have initialized the Git submodules. Run `make update-submodule` to run a fake-target which initializes and updates the submodule.
Then run `dub build` or `make` to build the software - if all dependencies are set up correctly, the binary will be built and stored as `build/appstream-generator`,
and can be used directly from there.
2016-03-08 14:19:20 -08:00
2016-04-22 11:44:55 -07:00
If you want to use the HTML reports, you need to install Bower, then run `make js` to download the JavaScript bits and store them in the right directory.
If you want, you can also install the generator system-wide using `make install`. In summary:
2016-03-28 17:59:05 -07:00
```ShellSession
2016-04-22 11:44:55 -07:00
$ make update-submodule
$ dub build --parallel
$ make js
$ sudo make install
2016-03-28 13:40:44 -07:00
```
2016-03-08 14:19:20 -08:00
## Usage
2016-03-28 17:59:05 -07:00
Take a look at the `docs/` directory in the source tree for information on how to use the generator. Right now, only the YAML output format is tested properly.