Next: , Previous: Contributing, Up: Top   [Contents][Index]


14 Distributing

If you are planning on maintaining ponysay in your favourite operating system you should first read Required runtime dependencies and Optional runtime dependencies. If your OS does not follow Filesystem Hierarchy Standard (FHS), e.g. installing amusement binaries in /usr/games instead of /usr/bin or only supporting /opt equivalent directories you should read about configurations in Custom installations.

Apart from this, you should configure ponysay before building it with the option --everything. Otherwise only the info manual and the English manpage will be installed for documentation.

Please inform us about your distribution so we can list it so everypony can see it.


The following is a reference distribution written in Arch Linux’s PKGBUILD format. It is not complete, proper, verbose enough or well written, it just contains the core of an stable git distribution.

pkgname=ponysay
pkgver=3.0
pkgrel=1
arch=(any)
pkgdesc="Cowsay reimplementation for ponies"
url="https://github.com/erkin/ponysay"
license=('GPL3' 'GNU FDL v1.3')
depends=(python>=3 coreutils)
optdepends=("util-say>=3: Improved TTY support with KMS and PNG files")
makedepends=('git' 'texinfo' 'info' 'gzip' 'python>=3', 'zip')

build()
{   cd "$srcdir"; git clone git://github.com/erkin/ponysay.git ponysay
    cd ponysay  ; git checkout "$pkgver"
    
    ./setup.py --everything --without-pdf-compression  \
               --bin-dir=/usr/bin --dest-dir="$pkgdir" \
               --freedom=parital build
    
    # CHANGE --freedom=parital to --freedom=strict
    # FOR ONLY COMPLETELY FREE PONIES,
    # useful for GNU/Linux-libre distributions
}

package()
{   cd "$srcdir/ponysay"; ./setup.py prebuilt
}