##################### GENERAL ##################### 
GARNAME = alpine
GARVERSION = 2.22
GARCH = i686
GARELEASE = 1
HOME_URL = http://alpine.x10host.com/alpine/
CATEGORIES = app/mail
MASTER_SITES += http://alpine.x10host.com/alpine/release/src/alpine-$(GARVERSION).tar.xz
DISTFILES = alpine-$(GARVERSION).tar.xz
#PATCHFILES = alpine-2.20-maildir.patch
PATCHFILES = maildir.patch.gz
MAINTAINER = Felipe Sanchez <izto@asic-linux.com.mx>
LICENSE = Apache License

# Directories to be created as part of the install process.
# Can be inside the final package or just transient dirs we need
# while building it.
INSTALL_DIRS = 

DESCRIPTION = A fast, easy to use email client
define BLURB
Alpine is a fast, easy to use email client that is suitable for both the
inexperienced email user as well as for the most demanding of power users.

This is the updated version maintained by Eduardo Chappa.

Includes the Maildir access patch by Eduardo Chappa.

Compiled WITHOUT SSL support.
endef

##################### PACKAGING #####################


#IZTACI_PACKAGE_PATH =

# Users and groups the binary package will create
# WHEN INSTALLED ON THE DESTINATION SYSTEM
CREATE_GROUPS = 
CREATE_USERS = 

# This is to be appended to the package's installation script
# Use it to set file owners, permissions, DB initialization, etc.
# Remember any shell variables (Such as $ROOT) have to be escaped
# like this: \$$ROOT

define DOINST_APPEND
endef

# Required dependencies
define SLACK_REQUIRED
ncurses
openssl
endef

# Suggested dependencies
define SLACK_SUGGESTS
endef

# Package conflicts (lprng vs cups for example)
define SLACK_CONFLICTS
endef



##################### BUILDING #####################


CONFIGURE_SCRIPTS  =  $(WORKSRC)/configure
BUILD_SCRIPTS      =  $(WORKSRC)/Makefile
INSTALL_SCRIPTS    =  $(WORKSRC)/Makefile

CONFIGURE_ARGS = $(DIRPATHS)
NODIRPATHS = 

# If some dirs are trying to install into /, list their names
# here, such as: prefix bindir mandir
INSTALL_OVERRIDE_DIRS = 


# Dependencies are of the form categorydir/packagedir
# LIBDEPS are for libraries, and DEPENDS are for everything else
DEPENDS =
LIBDEPS =
DEPENDS =
# Builddeps are installed in the build DESTIMG
BUILDDEPS =

##################### GAR #####################

# This should go before any hand-made rules.
include config.mk
include ../level.mk

##################### CUSTOMIZING #####################


test:
	cd $(WORKSRC); $(MAKE) check
	$(MAKECOOKIE)

pre-package:
	ln -s alpine $(DESTDIR)/usr/bin/pine
	$(MAKE) test
	$(MAKE) strip
	$(MAKE) gzip-man
	$(MAKECOOKIE)

