# Maintainer: Arnaud Fortier <
warnaud@gmail.com>
pkgname=fvwm-patched
pkgver=2.5.29
#自己修改想要版本.比如2.6.1
pkgrel=1
pkgdesc="A multiple large virtual desktop window manager originally derived from twm patched with
http://abdn.ac.uk/~u15dm4/fvwm/ and some other"
url="
http://www.fvwm.org"
depends=('imlib' 'fribidi' 'perl' 'libstroke' 'libxpm' 'libxinerama' 'readline' 'libxft' 'librsvg')
conflicts=('fvwm' 'fvwm-devel')
provides=('fvwm''fvwm-devel')
options=('docs')
source=(
ftp://ftp.fvwm.org/pub/fvwm/version-2/f ... er.tar.bz2
$pkgname.desktop
01-fvwm-translucent-menus.patch
02-fvwm-menu-xlock-xlockmore-compat.patch
03-ColourBorders.patch
04-ResizeOutlineThin.patch
05-Conditionals.patch
06-FlatSeparators.patch
07-BorderUnderTitle.patch
08-InactiveFont.patch
09-FluxRoundedCorners.patch
10-TopBorder.patch
11-ButtonWidth.patch
12-MultiBorder.patch
13-FvwmButtonsTips.patch
14-FvwmIconMan.patch
15-Hover.patch
16-FirstItemUnderPointer.patch
17-TextOffset.patch
18-ThinGeometryProxy.patch
19-Fix-build-with-libpng14.patch)
md5sums=('3755c7e2acfa722b06ed86160c9fe902'
#修改想要版本的md5. 2.6.1的是fbbbed1bb41fa0878b17ee209947602d
'e298c89dd8f7315c90d839dbac068670'
'4b68e51fe69d9e6b124deaa0156bca7a'
'd91fb7d2af57653fc93a70e6e1c0a0ea'
'8afc398a1072ef4dd5f9ff258c3bb6fa'
'b1f104496906aea86d7cfe600ccd8be8'
'fdb78083da0f0149ce4f32392e58a95e'
'5839d84779dba5d77ac8da25736d9af2'
'a4e89818e29436165e99e49819f48464'
'24be0e9b84289c2279226eb3a205a9c6'
'94517bd9e7cd903924bb75e77d5f74bc'
'3b4c3c63943c39615d5d1c9143a95763'
'a8312189b8e5d9d2c294d7cce66fe271'
'19500b8bdd9dc36909e8f0b7df49cbac'
'c683c7645d479dfb8bf5ec0b755cbb1e'
'64ce6e92d9466e40c462431a76232ddc'
'951bd67053093e8a0c253c2ed8af95aa'
'c12d238cbefc25bd19879401c327e6fe'
'd41d8cd98f00b204e9800998ecf8427e'
'9df3958e5b2e1f3c5ed3721e2f3a5cdd'
'3fa46769c46fb8d05552c00ad37ccd2c')
arch=('i686' 'x86_64')
license=('GPL')
build() {
cd $startdir/src/fvwm-$pkgver
#Patching
# Enables real transparency on menus
echo "** Applying Translucent menus patch **"
patch -p0 < $startdir/01-fvwm-translucent-menus.patch || return 1
# Enables compatibility with xlockmore
echo "** Applying xlockmore compatibility patch **"
#patch -p1 < $startdir/02-fvwm-menu-xlock-xlockmore-compat.patch || return 1
# Enables different colours on window's borders
echo "** Applying ColourBorders patch **"
patch -p0 < $startdir/03-ColourBorders.patch || return 1
# Enables a single piwel rectangle when resizing
echo "** Applying Resize Outline Thin patch **"
patch -p0 < $startdir/04-ResizeOutlineThin.patch || return 1
# Enables other conditions for windows : )
echo "** Applying Conditional patch **"
patch -p0 < $startdir/05-Conditionals.patch || return 1
# Enables the use of Flat Separators (single pixel separator)
echo "** Applying flat separators patch **"
patch -p0 < $startdir/06-FlatSeparators.patch || return 1
# Adds a border under the titlebar
echo "** Applying border under titlebar patch **"
patch -p0 < $startdir/07-BorderUnderTitle.patch || return 1
# Enables the use of a different font for Inactive windows
echo "** Applying inactive fonts patch **"
patch -p0 < $startdir/08-InactiveFont.patch || return 1
# A mix of FluxboxHandles and RoundedCorners
# you can't activate both on the same window
# Add corners in fluxbox style
# or add rounded corners
echo "** Applying FluxRounded Corners patch **"
patch -p0 < $startdir/09-FluxRoundedCorners.patch || return 1
# Sets the top border to a single pixel
echo "** Applying Top Border patch **"
patch -p0 < $startdir/10-TopBorder.patch || return 1
# Sets the width of the title buttons
echo "** Applying Button Width patch **"
patch -p0 < $startdir/11-ButtonWidth.patch || return 1
# Enables the use of 8 pixmaps for each borders
echo "** Applying Multiborder patch **"
patch -p0 < $startdir/12-MultiBorder.patch || return 1
# Enables the uses of tips on FvwmButtons
echo "** Applying FvwmButtonTips patch **"
patch -p0 < $startdir/13-FvwmButtonsTips.patch || return 1
# Enables rounded corners on FvwmIconMan
echo "** Applying FvwmIconMan patch **"
patch -p0 < $startdir/14-FvwmIconMan.patch || return 1
# Allows you to specify button pixmaps that will be shown when you move the mouse over the buttons
echo "** Applying Hover patch **"
patch -p0 < $startdir/15-Hover.patch || return 1
# Menus with titles are opened so that the first item is under the pointer without warping
#echo "** Applying First Item Under Pointer patch **"
#patch -p0 < $startdir/16-FirstItemUnderPointer.patch || return 1
# Enables Offset of the text in TitleBar
echo "** Applying TextOffset patch **"
patch -p0 < $startdir/17-TextOffset.patch || return 1
# The geometry window and proxy windows have a single pixel border
echo "** Applying ThinGeometry patch **"
patch -p0 < $startdir/18-ThinGeometryProxy.patch || return 1
echo "** Applying libpng14 patch **"
patch -p1 < $startdir/19-Fix-build-with-libpng14.patch || return 1
#注释这一行,这个补丁打不上,留着会出错 .
./configure --prefix=/usr \
#./configure后的建议参数去掉.我留着会导致MENU菜单字体无法自定义
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--with-xft-prefix=/usr \
--with-fontconfig=/usr \
--with-stroke \
--enable-perllib \
--enable-xinerama \
--enable-bidi \
--enable-nls --enable-iconv \
--enable-xft
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -d "${pkgdir}/etc/fvwm"
install -D -m644 sample.fvwmrc/* "${pkgdir}/etc/fvwm" || return 1
rm -f "${pkgdir}"/etc/fvwm/Makefile*
install -D -m644 ../fvwm-patched.desktop "${pkgdir}/etc/X11/sessions/fvwm-devel.desktop" || return 1
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" || return 1
}