#!/bin/sh

name="blackbox"
title="blackbox"
package="blackbox"
version="0.62.1"
build="1"
noarch="n"
build_info="Standard build."

info_pl="Maly i szybki menadzer okien dla X Window"
info="Fast and small window manager for X Window"
desc="Blackbox WM."
desc_pl="Blackbox WM."
category="X11/Application"
environment="X11"
contact="packages@intersec.pl"
vendor="Packware Project"
vendor_id="pw"

# Other packages required by the package (not because of needed libraries).
requires=""
# Other packages that the package can replace.
obsoletes=""
# Other packages that conflicts with the package.
conflicts=""

# Files to copy from sources directory.
docs_source="AUTHORS,ChangeLog,INSTALL,LICENSE,README*,TODO"
# Files to copy from directory with .builder.
docs_cwd=""

# Strip all binaries.
strip_bin="y"
# Set files ownings to root.root.
reset_own="y"
# Set directories modes to 755.
reset_dir="y"
# Set files modes to 755 and 644
reset_fil="y"
# Delete formatted man pages.
delete_cat="y"

# Don't remove the line below.
. /usr/src/tgz/lib/builder.defs

# Unpack sources here (add_source).
#add_source http://prdownloads.sourceforge.net/blackboxwm/$name-$version.tar.gz
add_source blackbox-0.62.1.tar.gz

# Ask user for compile-time options here.
# Change file mode with function change_mod (format of mode is the same as in
# chmod command):
# change_mod package file mode

# Change file owner with function change_own (format of mode is the same as in
# chown command):
# change_own package file user.group

# Constant options for ./configure script (configure_option).
configure_option --prefix=/usr/X11R6
configure_option --enable-ordered-pseudo

# Warning! --host=$architecture-pc-linux-gnu is passed to ./configure by
# default. Use build_host_off to turn it off.
# build_host_off

# Constant options for make (make_option).

# Constant options for make install (install_option).
install_option DESTDIR=$pkg_main

# Don't remove the two lines below.
parent_package="$package"
write_info main

# Change to sources directory that we will be operating on.
cd $src1

# Run configure script with options as given by function configure_option.
do_configure
# Run make with options as given by function make_option.
do_make
# Run make install with options as given by function install_option.
do_install

# Copy files passed by src_docs and cwd_docs variables to usr/doc/name-version.
make_docs

# Define subpackages here (subpackage).

# Create packages (main and subpackages defined earlier).
make_package main

# Remove temporary directory.
clean_up
