###############################################################################
-# #
-# IPFire.org - A linux based firewall #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
-# #
-# This program is free software: you can redistribute it and/or modify #
-# it under the terms of the GNU General Public License as published by #
-# the Free Software Foundation, either version 3 of the License, or #
-# (at your option) any later version. #
-# #
-# This program is distributed in the hope that it will be useful, #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
-# GNU General Public License for more details. #
-# #
-# You should have received a copy of the GNU General Public License #
-# along with this program. If not, see <http://www.gnu.org/licenses/>. #
-# #
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
###############################################################################
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
-
-PKG_NAME = sane
-PKG_VER = 1.0.21
-PKG_REL = 0
-
-PKG_MAINTAINER =
-PKG_GROUPS = Application/Imaging
-PKG_URL = ftp://ftp2.sane-project.org/pub/sane/
-PKG_LICENSE = GPLv2+
-PKG_SUMMARY = SANE - Scanner Access Now Easy.
-
-PKG_BUILD_DEPS+= libjpeg-devel libtiff-devel libusb-devel
-
-define PKG_DESCRIPTION
- sane-backends - includes: backends (scanner drivers), \
- command-line-frontend (scanimage), network scanning daemon \
- (saned) and SANE-API documentation.
-endef
-
-PKG_TARBALL = $(PKG_NAME)-backends-$(PKG_VER).tar.gz
-
-PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
-
-DIR_APP = $(DIR_SRC)/$(PKG_NAME)-backends-$(PKG_VER)
-
-CONFIGURE_OPTIONS += \
- --sysconfdir=/etc \
- --enable-parport-directio
-
-define STAGE_INSTALL_CMDS
- chmod 4755 $(BUILDROOT)/usr/bin/scanimage
- install -v -m 644 $(DIR_APP)/include/sane/* $(BUILDROOT)/usr/include/sane
- rm -vf $(BUILDROOT)/usr/share/doc/sane-1.0.20/README.solaris
-endef
+name = sane
+version = 1.0.21
+release = 1
+
+groups = Application/Imaging
+url = ftp://ftp2.sane-project.org/pub/sane/
+license = GPLv2+
+summary = SANE - Scanner Access Now Easy.
+
+description
+ sane-backends - includes: backends (scanner drivers),
+ command-line-frontend (scanimage), network scanning daemon
+ (saned) and SANE-API documentation.
+end
+
+source_dl = ftp://ftp2.sane-project.org/pub/sane/sane-backends-%{version}/
+sources = %{name}-backends-%{version}.tar.gz
+
+build
+ requires
+ libjpeg-devel
+ libtiff-devel
+ libusb-devel
+ end
+
+ DIR_APP = %{DIR_SRC}/%{name}-backends-%{version}
+
+ configure_options += \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-parport-directio
+
+ install_cmds
+ chmod 4755 %{BUILDROOT}/usr/bin/scanimage
+ install -v -m 644 %{DIR_APP}/include/sane/* %{BUILDROOT}/usr/include/sane
+ rm -vf %{BUILDROOT}/usr/share/doc/sane-1.0.20/README.solaris
+ end
+end
+
+packages
+ package %{name}
+ end
+
+ package %{name}-libs
+ template LIBS
+ end
+
+ package %{name}-devel
+ template DEVEL
+ end
+end