Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ mlvwm/mlvwm
**/*.o
mlvwm.*
**/*.swp
.session.vim
38 changes: 38 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pkgname=mlvwm
pkgver=master
pkgrel=1
pkgdesc='Unoffical package for Macintosh-Like Virtual Window Manager, it attempts to emulate the pre-Mac OS X Macintosh look and feel in its layout and window design.'
arch=('i686' 'x86_64')
url="http://www2u.biglobe.ne.jp/~y-miyata/mlvwm.html"
license=('mit')
depends=('libxpm')
makedepends=('imake')
source=(https://github.com/saintofvice/${pkgname}/archive/${pkgver}.zip)

build() {
cd ${pkgname}
# https://github.com/morgant/mlvwm/issues/40
# sed -i -e 's/void (\*action)()/void (\*action)(char \*)/g' mlvwm/functions.h
# sed -i -e '182d' mlvwm/mlvwm.h
# sed -i -e 's|#define DEFAULTFS.*|#define DEFAULTFS "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1"|' mlvwm/mlvwm.h
# sed -i -e 's|#define DEFAULTFONT.*|#define DEFAULTFONT "-misc-chicago kare-*-*-r-*-*-12-*-*-*-p-*-*-*"|' mlvwm/mlvwm.h
cd man && xmkmf && cd -
cd sample_rc && xmkmf && cd -
cd mlvwm && xmkmf && cd -
xmkmf
make
#make PREFIX="$pkgdir"/usr BINARY=$pkgname install man
}
package () {
cd ${pkgname}
sed -n '1,34 p'< mlvwm/mlvwm.c >license
mkdir -p "$pkgdir"/usr/share/licenses/$pkgname/
mkdir -p "$pkgdir"/usr/share/man/man1/
mkdir -p "$pkgdir"/usr/bin
mkdir -p "$pkgdir"/usr/share/$pkgname
cp -R sample_rc/Mlvwmrc* "$pkgdir"/usr/share/$pkgname
install -m755 mlvwm/mlvwm "$pkgdir"/usr/bin/$pkgname
install -c -m444 man/mlvwm._man "$pkgdir"/usr/share/man/man1/mlvwm.1x
install -m644 license "$pkgdir"/usr/share/licenses/$pkgname/
}

2 changes: 1 addition & 1 deletion mlvwm/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct configure key_modifiers[]=
{0,0}
};

#define FALLBACK_FONT "-*-*-*-r-*-*-*-*-*-*-*-*-*-*"
#define FALLBACK_FONT "-*-*-*-*-*-*-12-120-*-*-*-*-iso8859-*"

char *NoTitleStyle( styles *tmp_style, char *str )
{
Expand Down
2 changes: 1 addition & 1 deletion mlvwm/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
typedef struct builtin_func
{
char *label;
void (*action)();
void (*action)(char *);
} builtin_func;

extern void ShadeWindow( MlvwmWindow * );
Expand Down
8 changes: 5 additions & 3 deletions mlvwm/mlvwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ extern Atom _XA_WM_DESKTOP;

extern void Done( int, char * );
#ifdef USE_LOCALE
#define DEFAULTFS "-adobe-*-*-r-*-*-12-*-*-*-p-*-*-*,\
-*-*-*-r-*-*-12-*-*-*-*-*-*-*"
#define DEFAULTFS "-*-*-*-*-*-*-13-120-*-*-*-*-iso8859-*,\
-*-*-*-*-*-*-12-120-*-*-*-*-iso8859-*,\
-*-*-*-*-*-*-13-120-*-*-*-*-koi8-*,\
-*-*-*-*-*-*-12-120-*-*-*-*-koi8-*"
#else
#define DEFAULTFONT "-adobe-*-*-r-*-*-12-*-*-*-p-*-*-*"
#define DEFAULTFONT "-*-*-*-*-*-*-12-120-*-*-*-*-iso8859-*"
#endif
#endif