summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a10dbcefb0f24742b9c55e6ab57a549519eff72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# Maintainer: Philippe DUCRETTET <ecolinux@gmx.com>

pkgname=fvwm+
pkgver=2.6.5
pkgrel=5
pkgdesc="A powerful ICCCM2 compliant multiple virtual desktop window manager for X11 with some patchs"
arch=('i686' 'x86_64')
url="http://www.fvwm.org"
license=('GPL' 'custom')
depends=('imlib' 'fribidi' 'perl' 'libstroke' 'libxpm' 'libxinerama' 'readline' 'libxft' 'librsvg' 'libxcursor')
provides=('fvwm')
conflicts=('fvwm' 'fvwm-patched' 'fvwm+-cvs' 'fvwm-cvs')
replaces=('fvwm' )
options=('!emptydirs' '!makeflags')
source=(ftp://ftp.fvwm.org/pub/fvwm/version-2/fvwm-$pkgver.tar.bz2 
        fvwm+.desktop 
	configure.ac-makefile.am.patch
	01-TranslucentMenus.patch
	02-ColourBorders.patch
	03-ResizeOutlineThin.patch
	04-Conditionals.patch
	05-FlatSeparators.patch
	06-BorderUnderTitle.patch
	07-InactiveFont.patch
	08-FluxRoundedCorners.patch
	09-TopBorder.patch
	10-ButtonWidth.patch
	11-MultiBorder.patch
	12-FvwmButtonsTips.patch
	13-FvwmIconMan.patch
	14-Hover.patch
	15-FirstItemUnderPointer.patch
	16-ThinGeometryProxy.patch )

patched() {
  cd "${srcdir}/fvwm-$pkgver"
  #Patching

  #Patch configure.ac and makefile.am files
  echo "** Patch configure.ac file and makefile.am files **"
  patch -p0 < $startdir/configure.ac-makefile.am.patch || return 1

  # Enables real transparency on menus
  echo "** Applying Translucent menus patch **"
  patch -p0 < $startdir/01-TranslucentMenus.patch || return 1

  # Enables different colours on window's borders
  echo "** Applying ColourBorders patch **"
  patch -p0 < $startdir/02-ColourBorders.patch || return 1

  # Enables a single piwel rectangle when resizing
  echo "** Applying Resize Outline Thin patch **"
  patch -p0 < $startdir/03-ResizeOutlineThin.patch || return 1

  # Enables other conditions for windows :)
  echo "** Applying Conditional patch **"
  patch -p0 < $startdir/04-Conditionals.patch || return 1

  # Enables the use of Flat Separators (single pixel separator)
  echo "** Applying flat separators patch **"
  patch -p0 < $startdir/05-FlatSeparators.patch || return 1

  # Adds a border under the titlebar
  echo "** Applying border under titlebar patch **"
  patch -p0 < $startdir/06-BorderUnderTitle.patch || return 1

  # Ena1bles the use of a different font for Inactive windows
  echo "** Applying inactive fonts patch **"
  patch -p0 < $startdir/07-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/08-FluxRoundedCorners.patch || return 1

  # Sets the top border to a single pixel
  echo "** Applying Top Border patch **"
  patch -p0 < $startdir/09-TopBorder.patch || return 1

  # Sets the width of the title buttons
  echo "** Applying Button Width patch **"
  patch -p0 < $startdir/10-ButtonWidth.patch || return 1

  # Enables the use of 8 pixmaps for each borders
  echo "** Applying Multiborder patch **"
  patch -p0 < $startdir/11-MultiBorder.patch || return 1

  # Enables the uses of tips on FvwmButtons
  echo "** Applying FvwmButtonTips patch **"
  patch -p0 < $startdir/12-FvwmButtonsTips.patch || return 1

  # Enables rounded corners on FvwmIconMan
  echo "** Applying FvwmIconMan patch **"
  patch -p0 < $startdir/13-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/14-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/15-FirstItemUnderPointer.patch || return 1

  # The geometry window and proxy windows have a single pixel border
  echo "** Applying ThinGeometry patch **"
  patch -p0 < $startdir/16-ThinGeometryProxy.patch || return 1 
}

build() {
  cd "${srcdir}/fvwm-${pkgver}"
patched
  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib \
    --with-stroke-library  \
    --enable-perllib \
    --enable-xinerama \
    --enable-bidi \
    --enable-nls --enable-iconv \
    --enable-xft
  make
}

package() {
  cd $startdir/src/fvwm-$pkgver
  make DESTDIR="${pkgdir}" install
  install -d "${pkgdir}/usr/share/doc/fvwm"
  install -D -m644 sample.fvwmrc/{decor_examples,DecorMwm,DecorWin95,new-features,system.*} "${pkgdir}/usr/share/doc/fvwm"
  install -D -m644 ../fvwm+.desktop "${pkgdir}/usr/share/xsessions/fvwm+.desktop"
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/fvwm/COPYING"
}

md5sums=('090ba4e0c517e8b94f71317951530f69'
         'a12c52729a74355838404ee2f5716e0c'
         '4f0f03f70e058c7b67390e8f1fa7eb25'
         'd208dc6531e2e6a226fb063d007d6046'
         '23b47a21958455fbd0d9d6011b39d009'
         '01e4a4cee7780315a275b4428802c49f'
         '128c6a2d62a15e5fe95f0a3d1c2033b3'
         '209e2c1fa66bc5b502fba2cbe3a04f8a'
         '86b6c187be636c0543058f48856b5fb0'
         '1cceee901466d34953910bd598332d2f'
         'e053d2f34f527a62831563e26b7cdeb7'
         '037562c2c0eb82bc35d1b5b55098f2fc'
         '2541576d57ead08ce9772bb219f73f67'
         'ce8d47eea51abe0b594a42d17602b574'
         'c42763877b543c0bcb78a88460671b58'
         'd79ef23cbd62c647ea8d85526f0f2b17'
         '09388c4a2f4c86d6e0862e313f2fec86'
         'e4ed5f774e775c67d16f5be8e9783b52'
         'a552a1a273a9fa015271bed929cd275a')