aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-01-25 16:43:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-01-25 16:43:57 +0000
commit9526ee659401dee7160f35cb62ded2779bcbbc99 (patch)
tree812ad73bde9c84dcc02a3acbc5db576369ca314a /main
parent05e09c1126a898b6d0af491fef0401bf53e297f8 (diff)
downloadaports-9526ee659401dee7160f35cb62ded2779bcbbc99.tar.bz2
aports-9526ee659401dee7160f35cb62ded2779bcbbc99.tar.xz
merged x11 repository into main
ref #255
Diffstat (limited to 'main')
-rw-r--r--main/a52dec/APKBUILD27
-rw-r--r--main/a52dec/a52dec-0.7.4-build.patch27
-rw-r--r--main/abiword/APKBUILD24
-rw-r--r--main/aterm/APKBUILD28
-rw-r--r--main/aterm/uclibc.patch16
-rw-r--r--main/atk/APKBUILD25
-rw-r--r--main/bdftopcf/APKBUILD27
-rw-r--r--main/bigreqsproto/APKBUILD19
-rw-r--r--main/cairo/APKBUILD28
-rw-r--r--main/claws-mail/APKBUILD50
-rw-r--r--main/claws-mail/libc-version.patch22
-rw-r--r--main/compositeproto/APKBUILD20
-rw-r--r--main/cups/APKBUILD92
-rw-r--r--main/cups/cups.logrotate8
-rw-r--r--main/cups/cupsd.initd20
-rw-r--r--main/damageproto/APKBUILD19
-rw-r--r--main/dbus-glib/APKBUILD28
-rw-r--r--main/dbus/APKBUILD37
-rw-r--r--main/dbus/dbus.initd51
-rw-r--r--main/dbus/dbus.pre-install4
-rw-r--r--main/desktop-file-utils/APKBUILD21
-rw-r--r--main/desktop-file-utils/desktop-file-utils.trigger3
-rw-r--r--main/dhcpcd-dbus/APKBUILD25
-rw-r--r--main/dhcpcd-ui/APKBUILD25
-rw-r--r--main/dri2proto/APKBUILD20
-rw-r--r--main/enchant/APKBUILD21
-rw-r--r--main/encodings/APKBUILD24
-rw-r--r--main/epdfview/APKBUILD40
-rw-r--r--main/epdfview/epdfview.desktop.patch11
-rw-r--r--main/epdfview/fix-scrolling.patch33
-rw-r--r--main/epris/APKBUILD29
-rw-r--r--main/exo/APKBUILD34
-rw-r--r--main/feh/APKBUILD22
-rw-r--r--main/ffmpeg/APKBUILD45
-rw-r--r--main/ffmpeg/pic.patch11
-rw-r--r--main/fixesproto/APKBUILD19
-rw-r--r--main/fluxbox/APKBUILD28
-rw-r--r--main/font-adobe-100dpi/APKBUILD22
-rw-r--r--main/font-adobe-75dpi/APKBUILD22
-rw-r--r--main/font-adobe-utopia-100dpi/APKBUILD22
-rw-r--r--main/font-adobe-utopia-75dpi/APKBUILD22
-rw-r--r--main/font-adobe-utopia-type1/APKBUILD22
-rw-r--r--main/font-alias/APKBUILD20
-rw-r--r--main/font-arabic-misc/APKBUILD22
-rw-r--r--main/font-bh-100dpi/APKBUILD22
-rw-r--r--main/font-bh-75dpi/APKBUILD22
-rw-r--r--main/font-bh-lucidatypewriter-100dpi/APKBUILD22
-rw-r--r--main/font-bh-lucidatypewriter-75dpi/APKBUILD22
-rw-r--r--main/font-bh-ttf/APKBUILD22
-rw-r--r--main/font-bh-type1/APKBUILD22
-rw-r--r--main/font-bitstream-100dpi/APKBUILD22
-rw-r--r--main/font-bitstream-75dpi/APKBUILD22
-rw-r--r--main/font-bitstream-speedo/APKBUILD22
-rw-r--r--main/font-bitstream-type1/APKBUILD22
-rw-r--r--main/font-cronyx-cyrillic/APKBUILD22
-rw-r--r--main/font-cursor-misc/APKBUILD22
-rw-r--r--main/font-daewoo-misc/APKBUILD22
-rw-r--r--main/font-dec-misc/APKBUILD22
-rw-r--r--main/font-ibm-type1/APKBUILD22
-rw-r--r--main/font-isas-misc/APKBUILD22
-rw-r--r--main/font-jis-misc/APKBUILD22
-rw-r--r--main/font-micro-misc/APKBUILD22
-rw-r--r--main/font-misc-cyrillic/APKBUILD22
-rw-r--r--main/font-misc-ethiopic/APKBUILD22
-rw-r--r--main/font-misc-meltho/APKBUILD22
-rw-r--r--main/font-misc-misc/APKBUILD22
-rw-r--r--main/font-mutt-misc/APKBUILD22
-rw-r--r--main/font-schumacher-misc/APKBUILD22
-rw-r--r--main/font-screen-cyrillic/APKBUILD22
-rw-r--r--main/font-sony-misc/APKBUILD22
-rw-r--r--main/font-sun-misc/APKBUILD22
-rw-r--r--main/font-util/APKBUILD25
-rw-r--r--main/font-winitzki-cyrillic/APKBUILD22
-rw-r--r--main/font-xfree86-type1/APKBUILD22
-rw-r--r--main/fontconfig/APKBUILD33
-rw-r--r--main/fontconfig/fontconfig.trigger4
-rw-r--r--main/fontsproto/APKBUILD19
-rw-r--r--main/gamin/APKBUILD30
-rw-r--r--main/geany/APKBUILD24
-rw-r--r--main/giblib/APKBUILD25
-rw-r--r--main/giflib/APKBUILD31
-rw-r--r--main/glproto/APKBUILD19
-rw-r--r--main/gnome-doc-utils/APKBUILD20
-rw-r--r--main/gst-plugins-bad/APKBUILD31
-rw-r--r--main/gst-plugins-base/APKBUILD37
-rw-r--r--main/gst-plugins-ffmpeg/APKBUILD32
-rw-r--r--main/gst-plugins-good/APKBUILD44
-rw-r--r--main/gst-plugins-ugly/APKBUILD29
-rw-r--r--main/gstreamer/APKBUILD29
-rw-r--r--main/gtk+/APKBUILD52
-rw-r--r--main/gtk+/gtk+.post-deinstall5
-rw-r--r--main/gtk+/gtk+.post-install5
l---------main/gtk+/gtk+.post-upgrade1
-rw-r--r--main/gtk+/gtk+.trigger5
-rw-r--r--main/gtk-doc/APKBUILD23
-rw-r--r--main/gtk-vnc/APKBUILD35
-rw-r--r--main/gtk-xfce-engine/APKBUILD23
-rw-r--r--main/hicolor-icon-theme/APKBUILD19
-rw-r--r--main/iceauth/APKBUILD24
-rw-r--r--main/icon-naming-utils/APKBUILD25
-rw-r--r--main/imlib2/APKBUILD30
-rw-r--r--main/imlib2/bufferoverflow.patch13
-rw-r--r--main/inputproto/APKBUILD18
-rw-r--r--main/intltool/APKBUILD18
-rw-r--r--main/iso-codes/APKBUILD19
-rw-r--r--main/kbproto/APKBUILD19
-rw-r--r--main/libcroco/APKBUILD23
-rw-r--r--main/libdrm/APKBUILD23
-rw-r--r--main/libfontenc/APKBUILD27
-rw-r--r--main/libglade/APKBUILD35
-rw-r--r--main/libglade/libglade-2.0.1-nowarning.patch39
-rw-r--r--main/libglade/libglade.post-deinstall5
-rw-r--r--main/libglade/libglade.post-install12
l---------main/libglade/libglade.post-upgrade1
l---------main/libglade/libglade.pre-upgrade1
-rw-r--r--main/libgsf/APKBUILD34
-rw-r--r--main/libice/APKBUILD25
-rw-r--r--main/libmpeg2/APKBUILD34
-rw-r--r--main/libnotify/APKBUILD21
-rw-r--r--main/liboil/APKBUILD22
-rw-r--r--main/libpciaccess/APKBUILD24
-rw-r--r--main/libpthread-stubs/APKBUILD23
-rw-r--r--main/librsvg/APKBUILD34
l---------main/librsvg/librsvg.post-deinstall1
-rw-r--r--main/librsvg/librsvg.post-install7
l---------main/librsvg/librsvg.post-upgrade1
-rw-r--r--main/libsexy/APKBUILD22
-rw-r--r--main/libsm/APKBUILD22
-rw-r--r--main/libsoup/APKBUILD30
-rw-r--r--main/libtheora/APKBUILD43
-rw-r--r--main/libtheora/libtheora-flags.patch14
-rw-r--r--main/libwnck/APKBUILD27
-rw-r--r--main/libx11/APKBUILD31
-rw-r--r--main/libxau/APKBUILD23
-rw-r--r--main/libxcb/APKBUILD27
-rw-r--r--main/libxcomposite/APKBUILD24
-rw-r--r--main/libxcursor/APKBUILD26
-rw-r--r--main/libxdamage/APKBUILD24
-rw-r--r--main/libxdmcp/APKBUILD20
-rw-r--r--main/libxext/APKBUILD24
-rw-r--r--main/libxfce4menu/APKBUILD25
-rw-r--r--main/libxfce4util/APKBUILD28
-rw-r--r--main/libxfcegui4/APKBUILD31
-rw-r--r--main/libxfixes/APKBUILD20
-rw-r--r--main/libxfont/APKBUILD23
-rw-r--r--main/libxft/APKBUILD26
-rw-r--r--main/libxi/APKBUILD34
-rw-r--r--main/libxinerama/APKBUILD24
-rw-r--r--main/libxkbfile/APKBUILD27
-rw-r--r--main/libxkbui/APKBUILD24
-rw-r--r--main/libxklavier/APKBUILD25
-rw-r--r--main/libxmu/APKBUILD24
-rw-r--r--main/libxpm/APKBUILD27
-rw-r--r--main/libxrandr/APKBUILD28
-rw-r--r--main/libxrender/APKBUILD24
-rw-r--r--main/libxres/APKBUILD23
-rw-r--r--main/libxt/APKBUILD23
-rw-r--r--main/libxtst/APKBUILD24
-rw-r--r--main/libxv/APKBUILD26
-rw-r--r--main/libxvmc/APKBUILD25
-rw-r--r--main/libxxf86dga/APKBUILD24
-rw-r--r--main/libxxf86misc/APKBUILD25
-rw-r--r--main/libxxf86vm/APKBUILD27
-rw-r--r--main/mesa/APKBUILD92
-rw-r--r--main/mesa/intel-revert-vbl.patch21
-rw-r--r--main/mesa/mesa-7.4-parallel.patch12
-rw-r--r--main/mesa/mesa-7.6.1-ldflags.patch20
-rw-r--r--main/mesa/mesa-7.6.1-uclibc.patch13
-rw-r--r--main/mesa/mesa-7.7-link-shared.patch101
-rw-r--r--main/midori/APKBUILD48
-rw-r--r--main/midori/midori.post-deinstall5
-rw-r--r--main/midori/midori.post-install4
l---------main/midori/midori.post-upgrade1
-rw-r--r--main/mkfontdir/APKBUILD25
-rw-r--r--main/mkfontdir/mkfontdir.trigger6
-rw-r--r--main/mkfontscale/APKBUILD25
-rw-r--r--main/mkfontscale/mkfontscale.trigger6
-rw-r--r--main/mousepad/APKBUILD28
l---------main/mousepad/mousepad.post-deinstall1
-rw-r--r--main/mousepad/mousepad.post-install4
-rw-r--r--main/mrxvt/APKBUILD45
-rw-r--r--main/mrxvt/mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch12
-rw-r--r--main/mrxvt/mrxvt.desktop10
-rw-r--r--main/orage/APKBUILD30
l---------main/orage/orage.post-deinstall1
-rw-r--r--main/orage/orage.post-install4
-rw-r--r--main/pango/APKBUILD29
-rw-r--r--main/pango/pango.post-install2
-rw-r--r--main/pango/pango.pre-deinstall2
-rw-r--r--main/parole/APKBUILD35
-rw-r--r--main/pixman/APKBUILD24
-rw-r--r--main/poppler-gtk/APKBUILD42
-rw-r--r--main/poppler/APKBUILD47
-rw-r--r--main/randrproto/APKBUILD20
-rw-r--r--main/rarian/APKBUILD28
-rw-r--r--main/rarian/user-segfault.patch14
-rw-r--r--main/rdesktop/APKBUILD21
-rw-r--r--main/recordproto/APKBUILD20
-rw-r--r--main/renderproto/APKBUILD20
-rw-r--r--main/resourceproto/APKBUILD18
-rw-r--r--main/rgb/APKBUILD23
-rw-r--r--main/ristretto/APKBUILD28
-rw-r--r--main/scrnsaverproto/APKBUILD21
-rw-r--r--main/scrot/APKBUILD24
-rw-r--r--main/sdl/APKBUILD32
-rw-r--r--main/sessreg/APKBUILD23
-rw-r--r--main/setxkbmap/APKBUILD20
-rw-r--r--main/shared-mime-info/APKBUILD26
-rw-r--r--main/shared-mime-info/shared-mime-info.post-deinstall14
-rw-r--r--main/shared-mime-info/shared-mime-info.trigger7
-rw-r--r--main/slim-themes/APKBUILD64
-rw-r--r--main/slim/APKBUILD61
-rw-r--r--main/slim/slim-1.3.1-gcc4.4.patch17
-rw-r--r--main/slim/slim-restart.patch141
-rwxr-xr-xmain/slim/slim.initd18
-rw-r--r--main/slim/slim.install7
-rw-r--r--main/slim/slim.logrotate9
-rw-r--r--main/sox/APKBUILD37
-rw-r--r--main/sox/sox-uclibc.patch22
-rw-r--r--main/startup-notification/APKBUILD23
-rw-r--r--main/swfdec-mozilla/APKBUILD22
-rw-r--r--main/swfdec/APKBUILD28
-rw-r--r--main/sylpheed/APKBUILD25
-rw-r--r--main/tango-icon-theme/APKBUILD20
-rw-r--r--main/terminal/APKBUILD31
-rw-r--r--main/terminal/terminal-dont-die-on-dbus-kill.patch10
-rw-r--r--main/thunar-archive-plugin/APKBUILD29
-rw-r--r--main/thunar/APKBUILD38
l---------main/thunar/thunar.post-deinstall1
-rw-r--r--main/thunar/thunar.post-install5
l---------main/thunar/thunar.post-upgrade1
-rw-r--r--main/transmission/APKBUILD47
-rw-r--r--main/transmission/transmission-daemon.confd18
-rw-r--r--main/transmission/transmission-daemon.initd22
-rw-r--r--main/transmission/transmission.pre-install5
-rw-r--r--main/ttf-dejavu/APKBUILD27
l---------main/ttf-dejavu/ttf-dejavu.post-deinstall1
-rw-r--r--main/ttf-dejavu/ttf-dejavu.post-install6
l---------main/ttf-dejavu/ttf-dejavu.post-upgrade1
-rw-r--r--main/util-macros/APKBUILD19
-rw-r--r--main/videoproto/APKBUILD19
-rw-r--r--main/vte/APKBUILD29
-rw-r--r--main/webkit/APKBUILD45
-rw-r--r--main/wv/APKBUILD24
-rw-r--r--main/x264/APKBUILD29
-rw-r--r--main/xarchiver/APKBUILD32
-rw-r--r--main/xarchiver/xarchiver-0.5.2-stack-smash.patch20
-rw-r--r--main/xauth/APKBUILD23
-rw-r--r--main/xbacklight/APKBUILD23
-rw-r--r--main/xbitmap/APKBUILD19
-rw-r--r--main/xcb-proto/APKBUILD24
-rw-r--r--main/xcb-util/APKBUILD20
-rw-r--r--main/xchat/APKBUILD35
-rw-r--r--main/xchat/xchat-gtk2.patch12
-rw-r--r--main/xcmiscproto/APKBUILD18
-rw-r--r--main/xcmsdb/APKBUILD23
-rw-r--r--main/xdpyinfo/APKBUILD21
-rw-r--r--main/xdriinfo/APKBUILD21
-rw-r--r--main/xev/APKBUILD21
-rw-r--r--main/xextproto/APKBUILD19
-rw-r--r--main/xf86-input-evdev/APKBUILD26
-rw-r--r--main/xf86-input-keyboard/APKBUILD25
-rw-r--r--main/xf86-input-mouse/APKBUILD25
-rw-r--r--main/xf86-input-synaptics/APKBUILD25
-rw-r--r--main/xf86-video-apm/APKBUILD28
-rw-r--r--main/xf86-video-ark/APKBUILD27
-rw-r--r--main/xf86-video-ast/APKBUILD27
-rw-r--r--main/xf86-video-ati/APKBUILD32
-rw-r--r--main/xf86-video-chips/APKBUILD27
-rw-r--r--main/xf86-video-cirrus/APKBUILD27
-rw-r--r--main/xf86-video-dummy/APKBUILD27
-rw-r--r--main/xf86-video-fbdev/APKBUILD27
-rw-r--r--main/xf86-video-geode/APKBUILD27
-rw-r--r--main/xf86-video-glint/APKBUILD28
-rw-r--r--main/xf86-video-i128/APKBUILD27
-rw-r--r--main/xf86-video-i740/APKBUILD27
-rw-r--r--main/xf86-video-intel/APKBUILD28
-rw-r--r--main/xf86-video-mach64/APKBUILD29
-rw-r--r--main/xf86-video-newport/APKBUILD27
-rw-r--r--main/xf86-video-nv/APKBUILD27
-rw-r--r--main/xf86-video-openchrome/APKBUILD28
-rw-r--r--main/xf86-video-r128/APKBUILD31
-rw-r--r--main/xf86-video-radeonhd/APKBUILD27
-rw-r--r--main/xf86-video-rendition/APKBUILD27
-rw-r--r--main/xf86-video-s3/APKBUILD27
-rw-r--r--main/xf86-video-s3virge/APKBUILD27
-rw-r--r--main/xf86-video-savage/APKBUILD28
-rw-r--r--main/xf86-video-siliconmotion/APKBUILD27
-rw-r--r--main/xf86-video-sis/APKBUILD36
-rw-r--r--main/xf86-video-sis/fix-bios-read-on-650-760.patch23
-rw-r--r--main/xf86-video-sunffb/APKBUILD28
-rw-r--r--main/xf86-video-sunleo/APKBUILD27
-rw-r--r--main/xf86-video-tdfx/APKBUILD28
-rw-r--r--main/xf86-video-tseng/APKBUILD27
-rw-r--r--main/xf86-video-v4l/APKBUILD27
-rw-r--r--main/xf86-video-vesa/APKBUILD27
-rw-r--r--main/xf86-video-vmware/APKBUILD35
-rw-r--r--main/xf86-video-vmware/abi2.patch38
-rw-r--r--main/xf86bigfontproto/APKBUILD18
-rw-r--r--main/xf86dgaproto/APKBUILD19
-rw-r--r--main/xf86driproto/APKBUILD19
-rw-r--r--main/xf86miscproto/APKBUILD19
-rw-r--r--main/xf86vidmodeproto/APKBUILD18
-rw-r--r--main/xfce-utils/APKBUILD28
-rw-r--r--main/xfce4-appfinder/APKBUILD30
l---------main/xfce4-appfinder/xfce4-appfinder.post-deinstall1
-rw-r--r--main/xfce4-appfinder/xfce4-appfinder.post-install4
l---------main/xfce4-appfinder/xfce4-appfinder.post-upgrade1
-rw-r--r--main/xfce4-battery-plugin/APKBUILD30
-rw-r--r--main/xfce4-battery-plugin/compile_x86_64.diff13
l---------main/xfce4-battery-plugin/xfce4-battery-plugin.post-deinstall1
-rw-r--r--main/xfce4-battery-plugin/xfce4-battery-plugin.post-install4
l---------main/xfce4-battery-plugin/xfce4-battery-plugin.post-upgrade1
-rw-r--r--main/xfce4-cpufreq-plugin/APKBUILD27
-rw-r--r--main/xfce4-dev-tools/APKBUILD26
-rw-r--r--main/xfce4-mixer/APKBUILD30
l---------main/xfce4-mixer/xfce4-mixer.post-deinstall1
-rw-r--r--main/xfce4-mixer/xfce4-mixer.post-install4
l---------main/xfce4-mixer/xfce4-mixer.post-upgrade1
-rw-r--r--main/xfce4-notifyd/APKBUILD25
l---------main/xfce4-notifyd/xfce4-notifyd.post-deinstall1
-rw-r--r--main/xfce4-notifyd/xfce4-notifyd.post-install4
l---------main/xfce4-notifyd/xfce4-notifyd.post-upgrade1
-rw-r--r--main/xfce4-panel/APKBUILD32
-rw-r--r--main/xfce4-panel/xfce4-panel.post-deinstall4
-rw-r--r--main/xfce4-panel/xfce4-panel.post-install5
l---------main/xfce4-panel/xfce4-panel.post-upgrade1
-rw-r--r--main/xfce4-screenshooter/APKBUILD32
l---------main/xfce4-screenshooter/xfce4-screenshooter.post-deinstall1
-rw-r--r--main/xfce4-screenshooter/xfce4-screenshooter.post-install4
l---------main/xfce4-screenshooter/xfce4-screenshooter.post-upgrade1
-rw-r--r--main/xfce4-session/APKBUILD45
-rw-r--r--main/xfce4-session/busybox-shutdown.patch13
l---------main/xfce4-session/xfce4-session.post-deinstall1
-rw-r--r--main/xfce4-session/xfce4-session.post-install4
-rw-r--r--main/xfce4-settings/APKBUILD34
-rw-r--r--main/xfce4-taskmanager/APKBUILD24
-rw-r--r--main/xfce4-vala/APKBUILD31
-rw-r--r--main/xfce4-wavelan-plugin/APKBUILD32
-rw-r--r--main/xfce4-wavelan-plugin/tooltip.diff19
-rw-r--r--main/xfce4-xkb-plugin/APKBUILD36
-rw-r--r--main/xfce4-xkb-plugin/xfce4-xkb-plugin-0.5.3.3-libxklavier.patch21
-rw-r--r--main/xfce4/APKBUILD22
-rw-r--r--main/xfconf/APKBUILD26
-rw-r--r--main/xfdesktop/APKBUILD33
l---------main/xfdesktop/xfdesktop.post-deinstall1
-rw-r--r--main/xfdesktop/xfdesktop.post-install4
l---------main/xfdesktop/xfdesktop.post-upgrade1
-rw-r--r--main/xfprint/APKBUILD28
-rw-r--r--main/xfwm4-themes/APKBUILD24
-rw-r--r--main/xfwm4/APKBUILD31
l---------main/xfwm4/xfwm4.post-deinstall1
-rw-r--r--main/xfwm4/xfwm4.post-install4
l---------main/xfwm4/xfwm4.post-upgrade1
-rw-r--r--main/xgamma/APKBUILD23
-rw-r--r--main/xhost/APKBUILD23
-rw-r--r--main/xineramaproto/APKBUILD19
-rw-r--r--main/xinit/APKBUILD34
-rw-r--r--main/xinit/xinitrc49
-rw-r--r--main/xinit/xserverrc1
-rw-r--r--main/xinit/xsession10
-rw-r--r--main/xkbcomp/APKBUILD28
-rw-r--r--main/xkeyboard-config/APKBUILD25
-rw-r--r--main/xmodmap/APKBUILD23
-rw-r--r--main/xorg-server/APKBUILD137
-rw-r--r--main/xorg-server/xorg-redhat-die-ugly-pattern-die-die-die.patch16
-rw-r--r--main/xproto/APKBUILD21
-rw-r--r--main/xrandr/APKBUILD26
-rw-r--r--main/xrandr/xrandr-1.3.0-clone-nameclash.patch29
-rw-r--r--main/xrdb/APKBUILD23
-rw-r--r--main/xrefresh/APKBUILD23
-rw-r--r--main/xset/APKBUILD23
-rw-r--r--main/xsetmode/APKBUILD23
-rw-r--r--main/xsetroot/APKBUILD23
-rw-r--r--main/xtrans/APKBUILD19
-rw-r--r--main/xvinfo/APKBUILD21
-rw-r--r--main/zsnes/APKBUILD49
-rw-r--r--main/zsnes/zsnes-1.51-CC-quotes.patch20
-rw-r--r--main/zsnes/zsnes-1.51-depbuild.patch34
-rw-r--r--main/zsnes/zsnes.desktop9
-rw-r--r--main/zsnes/zsnes.patch67
-rw-r--r--main/zsnes/zsnes_icon.pngbin0 -> 7301 bytes
382 files changed, 8862 insertions, 0 deletions
diff --git a/main/a52dec/APKBUILD b/main/a52dec/APKBUILD
new file mode 100644
index 0000000000..8d3b868d2f
--- /dev/null
+++ b/main/a52dec/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=a52dec
+pkgver=0.7.4
+pkgrel=0
+pkgdesc="liba52 is a free library for decoding ATSC A/52 streams."
+url="http://liba52.sourceforge.net/"
+license="GPL2"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="autoconf automake libtool"
+source="http://liba52.sourceforge.net/files/$pkgname-$pkgver.tar.gz
+ $pkgname-$pkgver-build.patch"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -Np1 -i "$srcdir"/a52dec-0.7.4-build.patch || return 1
+ ./bootstrap || return 1
+ ./configure --prefix=/usr \
+ --enable-shared \
+ || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/ || return 1
+}
+md5sums="caa9f5bc44232dc8aeea773fea56be80 a52dec-0.7.4.tar.gz
+fa16f224a7dceb7613824380abef0052 a52dec-0.7.4-build.patch"
diff --git a/main/a52dec/a52dec-0.7.4-build.patch b/main/a52dec/a52dec-0.7.4-build.patch
new file mode 100644
index 0000000000..f3a29f303c
--- /dev/null
+++ b/main/a52dec/a52dec-0.7.4-build.patch
@@ -0,0 +1,27 @@
+diff -Naur a52dec-0.7.4.orig/liba52/Makefile.am a52dec-0.7.4/liba52/Makefile.am
+--- a52dec-0.7.4.orig/liba52/Makefile.am 2002-01-27 20:36:48.000000000 -0800
++++ a52dec-0.7.4/liba52/Makefile.am 2004-11-05 01:10:21.317401872 -0800
+@@ -1,4 +1,3 @@
+-CFLAGS = @CFLAGS@ @LIBA52_CFLAGS@
+
+ lib_LTLIBRARIES = liba52.la
+
+diff -Naur a52dec-0.7.4.orig/liba52/configure.incl a52dec-0.7.4/liba52/configure.incl
+--- a52dec-0.7.4.orig/liba52/configure.incl 2002-01-27 20:36:48.000000000 -0800
++++ a52dec-0.7.4/liba52/configure.incl 2004-11-05 01:11:38.172672216 -0800
+@@ -2,7 +2,6 @@
+ AC_SUBST([LIBA52_LIBS])
+
+ dnl avoid -fPIC when possible
+-LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
+
+ AC_ARG_ENABLE([double],
+ [ --enable-double use double-precision samples])
+diff -Naur a52dec-0.7.4.orig/src/Makefile.am a52dec-0.7.4/src/Makefile.am
+--- a52dec-0.7.4.orig/src/Makefile.am 2002-06-22 18:51:57.000000000 -0700
++++ a52dec-0.7.4/src/Makefile.am 2004-11-05 01:10:21.320401375 -0800
+@@ -1,4 +1,3 @@
+-CFLAGS = @A52DEC_CFLAGS@
+
+ bin_PROGRAMS = a52dec extract_a52
+ a52dec_SOURCES = a52dec.c getopt.c gettimeofday.c
diff --git a/main/abiword/APKBUILD b/main/abiword/APKBUILD
new file mode 100644
index 0000000000..198620e233
--- /dev/null
+++ b/main/abiword/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=abiword
+pkgver=2.8.1
+pkgrel=0
+pkgdesc="A fully-featured word processor"
+url="http://www.abisource.com"
+license="GPL"
+makedepends="pkgconfig libglade-dev libgsf-dev enchant-dev fribidi-dev wv-dev
+ popt-dev jpeg-dev librsvg-dev bzip2-dev"
+subpackages="$pkgname-dev"
+source="http://www.abisource.com/downloads/$pkgname/$pkgver/source/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+md5sums="284fe25289c160c3797b527a8aacad12 abiword-2.8.1.tar.gz"
diff --git a/main/aterm/APKBUILD b/main/aterm/APKBUILD
new file mode 100644
index 0000000000..e414f4a457
--- /dev/null
+++ b/main/aterm/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=aterm
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="An xterm replacement with transparency support"
+url="http://aterm.sourceforge.net/"
+license="GPL"
+makedepends="libxext-dev libsm-dev libxt-dev"
+subpackages="$pkgname-doc"
+depends=
+source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
+ uclibc.patch"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p1 < ../uclibc.patch || return 1
+ ./configure --prefix=/usr \
+ --enable-transparency=yes \
+ --enable-background-image \
+ --enable-fading \
+ --enable-menubar \
+ --enable-graphics
+ make || return 1
+ make prefix="$pkgdir"/usr install
+}
+md5sums="c2eede028e1011e0ec7035cf319c9b5a aterm-1.0.1.tar.bz2
+cd942d2639bd32fb9cbf06c94dcd536f uclibc.patch"
diff --git a/main/aterm/uclibc.patch b/main/aterm/uclibc.patch
new file mode 100644
index 0000000000..1c14283457
--- /dev/null
+++ b/main/aterm/uclibc.patch
@@ -0,0 +1,16 @@
+--- aterm-1.0.1/src/command.c.orig 2009-06-12 18:04:43.000000000 +0000
++++ aterm-1.0.1/src/command.c 2009-06-12 18:10:23.000000000 +0000
+@@ -91,7 +91,12 @@
+
+ #if defined (__svr4__) || defined (__lnx21__)
+ # include <sys/resource.h> /* for struct rlimit */
+-# include <sys/stropts.h> /* for I_PUSH */
++# if defined (__UCLIBC__)
++# define __SID ('S' << 8)
++# define I_PUSH (__SID | 2)
++# else
++# include <sys/stropts.h> /* for I_PUSH */
++# endif
+ # define _NEW_TTY_CTRL /* to get proper defines in <termios.h> */
+ #endif
+
diff --git a/main/atk/APKBUILD b/main/atk/APKBUILD
new file mode 100644
index 0000000000..2cd80710cf
--- /dev/null
+++ b/main/atk/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=atk
+pkgver=1.28.0
+pkgrel=1
+pkgdesc="A library providing a set of interfaces for accessibility"
+url="http://www.gtk.org/"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="glib-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="010a85478adc053c016a0a5c9bb52004 atk-1.28.0.tar.bz2"
diff --git a/main/bdftopcf/APKBUILD b/main/bdftopcf/APKBUILD
new file mode 100644
index 0000000000..49abcee746
--- /dev/null
+++ b/main/bdftopcf/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=bdftopcf
+pkgver=1.0.2
+pkgrel=0
+pkgdesc="X.Org font utility"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig libxfont-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://xorg.freedesktop.org//releases/individual/app/bdftopcf-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-mapdir=/usr/share/fonts/util || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="148f20d28caaa69bbe7dcca7c2674fb6 bdftopcf-1.0.2.tar.bz2"
diff --git a/main/bigreqsproto/APKBUILD b/main/bigreqsproto/APKBUILD
new file mode 100644
index 0000000000..4960d2dd37
--- /dev/null
+++ b/main/bigreqsproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=bigreqsproto
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="X11 Big Requests extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="d30c5dbf19ca6dffcd9788227ecff8c5 bigreqsproto-1.1.0.tar.bz2"
diff --git a/main/cairo/APKBUILD b/main/cairo/APKBUILD
new file mode 100644
index 0000000000..4e2183a0e7
--- /dev/null
+++ b/main/cairo/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=cairo
+pkgver=1.8.8
+pkgrel=0
+pkgdesc="Cairo vector graphics library"
+url="http://cairographics.org/"
+license="LGPL MPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libpng-dev libxrender-dev fontconfig pixman-dev
+ xcb-util-dev fontconfig-dev freetype-dev expat-dev zlib-dev
+ libiconv-dev"
+depends_dev="fontconfig-dev freetype-dev libpng-dev libxrender-dev pixman-dev
+ xcb-util-dev"
+source="http://cairographics.org/releases/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd ""$srcdir"/$pkgname-$pkgver"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-xcb \
+ --disable-static || return 1
+ make || return 1
+ make DESTDIR=""$pkgdir"" install || return 1
+}
+md5sums="d3e1a1035ae563812d4dd44a74fb0dd0 cairo-1.8.8.tar.gz"
diff --git a/main/claws-mail/APKBUILD b/main/claws-mail/APKBUILD
new file mode 100644
index 0000000000..5d133d7442
--- /dev/null
+++ b/main/claws-mail/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=claws-mail
+pkgver=3.7.4
+pkgrel=0
+pkgdesc="A GTK+ based e-mail client."
+url="http://www.claws-mail.org"
+license="GPL3"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="gtk+-dev openssl-dev startup-notification-dev enchant-dev
+ libsm-dev gnutls-dev curl-dev dbus-glib-dev libetpan-dev openldap-dev"
+depends=
+# gpgme-dev libetpan-dev
+#pilot-link>=0.12.3-5
+install= #claws-mail.install
+source="http://downloads.sourceforge.net/sourceforge/sylpheed-claws/$pkgname-$pkgver.tar.bz2
+ libc-version.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
+ patch -p1 -i ../libc-version.patch || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --disable-static \
+ --enable-enchant \
+ --enable-gnutls \
+ --enable-ldap \
+ --disable-dillo-viewer-plugin \
+ --enable-crash-dialog \
+ --enable-pgpmime-plugin \
+ --enable-spamassassin-plugin \
+ --enable-bogofilter-plugin \
+ --disable-jpilot
+ make || return 1
+ cd tools
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ find tools -maxdepth 1 -type f -and -perm /111 -or -name '*.conf' | while read i; do
+ install -D -m755 ${i} "$pkgdir"/usr/lib/claws-mail/tools/${i}
+ done
+}
+md5sums="aa6c8b9177bc2bc506470821ee2afbb2 claws-mail-3.7.4.tar.bz2
+f3416743b5d8ff97b5a3cc2f7efc2dc1 libc-version.patch"
diff --git a/main/claws-mail/libc-version.patch b/main/claws-mail/libc-version.patch
new file mode 100644
index 0000000000..c55c007baf
--- /dev/null
+++ b/main/claws-mail/libc-version.patch
@@ -0,0 +1,22 @@
+--- a/src/crash.c.orig 2009-09-05 22:12:33.000000000 +0000
++++ b/src/crash.c 2009-09-05 22:14:34.000000000 +0000
+@@ -42,7 +42,7 @@
+ # include <sys/utsname.h>
+ #endif
+
+-#if defined(__GNU_LIBRARY__)
++#if defined(__GNU_LIBRARY__) && !defined(__UCLIBC__)
+ # include <gnu/libc-version.h>
+ #endif
+
+@@ -446,7 +446,9 @@
+ */
+ static const gchar *get_lib_version(void)
+ {
+-#if defined(__GNU_LIBRARY__)
++#if defined(__UCLIBC__)
++ return g_strdup_printf("uClibc");
++#elif defined(__GNU_LIBRARY__)
+ return g_strdup_printf("GNU libc %s", gnu_get_libc_version());
+ #else
+ return g_strdup(_("Unknown"));
diff --git a/main/compositeproto/APKBUILD b/main/compositeproto/APKBUILD
new file mode 100644
index 0000000000..9efafaa848
--- /dev/null
+++ b/main/compositeproto/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=compositeproto
+pkgver=0.4.1
+pkgrel=0
+pkgdesc="X11 Composite extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="fixesproto"
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+md5sums="3692f3f8b2ea10dff3d2cede8dc65e79 compositeproto-0.4.1.tar.bz2"
diff --git a/main/cups/APKBUILD b/main/cups/APKBUILD
new file mode 100644
index 0000000000..26fd2ad2fc
--- /dev/null
+++ b/main/cups/APKBUILD
@@ -0,0 +1,92 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=cups
+pkgver=1.4.2
+pkgrel=1
+pkgdesc="The CUPS Printing System"
+url="http://www.cups.org/"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-doc libcups $pkgname-client"
+makedepends="openssl-dev libpaper-dev dbus-dev"
+depends="cups-client poppler-utils"
+install=
+pkggroups="lp lpadmin"
+pkgusers="lp"
+source="ftp://ftp.easysw.com/pub/$pkgname/$pkgver/$pkgname-$pkgver-source.tar.bz2
+ $pkgname.logrotate
+ cupsd.initd
+ "
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-logdir=/var/log/cups \
+ --with-docdir=/usr/share/cups/doc \
+ --with-cups-user=lp \
+ --with-cups-group=lp \
+ --with-system-groups=lpadmin \
+ --without-php \
+ --disable-pam \
+ --disable-ldap \
+ --libdir=/usr/lib \
+ --enable-raw-printing \
+ --enable-dbus \
+ --with-dbusdir=/etc/dbus-1 \
+ --enable-libpaper \
+ --enable-ssl=yes \
+ --enable-gnutls \
+ --enable-pdftops \
+ --with-pdftops=pdftops \
+ --with-optim="$CFLAGS"
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make BUILDROOT="$pkgdir" install
+ rm -rf "$pkgdir"/etc/init.d "$pkgdir"/etc/rc*
+
+ install -D -m644 ../cups.logrotate "$pkgdir"/etc/logrotate.d/cups
+ install -D -m755 ../cupsd.initd "$pkgdir"/etc/init.d/cupsd
+
+ sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' "$pkgdir"/usr/share/applications/cups.desktop
+ find "$pkgdir"/usr/share/cups/model -name "*.ppd" | xargs gzip -n9f
+}
+
+_mv() {
+ for i in "$@"; do
+ mkdir -p "$subpkgdir"/${i%/*}
+ mv "$pkgdir"/$i "$subpkgdir"/${i%/*}/ || return 1
+ done
+}
+
+libcups() {
+ pkgdesc="CUPS libraries"
+ _mv usr/lib/*.so*
+ install -d "$pkgdir"/etc/cups
+}
+
+client() {
+ pkgdesc="CUPS client"
+ _mv usr/bin \
+ usr/share/cups/charsets \
+ usr/share/cups/charmaps \
+ usr/sbin/accept \
+ usr/sbin/cupsaddsmb \
+ usr/sbin/cupsctl \
+ usr/sbin/cupsdisable \
+ usr/sbin/cupsenable \
+ usr/sbin/lpadmin \
+ usr/sbin/lpc \
+ usr/sbin/lpinfo \
+ usr/sbin/lpmove \
+ usr/sbin/reject
+ touch "$subpkgdir"/usr/share/cups/charmaps/us-ascii.txt
+}
+
+md5sums="d95e2d588e3d36e563027a963b117b1b cups-1.4.2-source.tar.bz2
+f861b18f4446c43918c8643dcbbd7f6d cups.logrotate
+1154ed66fdcfa0523f929a369079f43c cupsd.initd"
diff --git a/main/cups/cups.logrotate b/main/cups/cups.logrotate
new file mode 100644
index 0000000000..9c49bbdaff
--- /dev/null
+++ b/main/cups/cups.logrotate
@@ -0,0 +1,8 @@
+/var/log/cups/*log {
+ missingok
+ notifempty
+ delaycompress
+ postrotate
+ /bin/kill -HUP `cat /var/run/cups.pid 2>/dev/null` 2>/dev/null || true
+ endscript
+}
diff --git a/main/cups/cupsd.initd b/main/cups/cupsd.initd
new file mode 100644
index 0000000000..f59e27b4c4
--- /dev/null
+++ b/main/cups/cupsd.initd
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+
+depend() {
+ use net
+ need dbus
+ before nfs
+ after logger
+}
+
+start() {
+ ebegin "Starting cupsd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/cupsd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping cupsd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/cupsd
+ eend $?
+}
diff --git a/main/damageproto/APKBUILD b/main/damageproto/APKBUILD
new file mode 100644
index 0000000000..787b9d3fc2
--- /dev/null
+++ b/main/damageproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=damageproto
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="X11 Damage extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="434b931b02bd83ed9fc44951df81cdac damageproto-1.2.0.tar.bz2"
diff --git a/main/dbus-glib/APKBUILD b/main/dbus-glib/APKBUILD
new file mode 100644
index 0000000000..46c85f2019
--- /dev/null
+++ b/main/dbus-glib/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dbus-glib
+pkgver=0.82
+pkgrel=0
+pkgdesc="GLib bindings for DBUS"
+url="http://www.freedesktop.org/wiki/Software/DBusBindings"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="dbus glib libiconv expat gettext"
+makedepends="pkgconfig dbus-dev glib-dev libiconv-dev gettext-dev g++ expat-dev"
+source="http://dbus.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
+depends_dev="glib-dev dbus-dev"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-static=no \
+ --enable-bash-completion=no || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="aa2a4517de0e9144be3bce2cf8cdd924 dbus-glib-0.82.tar.gz"
diff --git a/main/dbus/APKBUILD b/main/dbus/APKBUILD
new file mode 100644
index 0000000000..054db27875
--- /dev/null
+++ b/main/dbus/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dbus
+pkgver=1.2.16
+pkgrel=1
+pkgdesc="Freedesktop.org message bus system"
+url="http://www.freedesktop.org/Software/dbus"
+license="GPL custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="expat-dev libx11-dev pkgconfig util-linux-ng-dev"
+depends_dev="util-linux-ng-dev"
+install="$pkgname.pre-install"
+source="http://$pkgname.freedesktop.org/releases/$pkgname/$pkgname-$pkgver.tar.gz
+ $pkgname.initd
+ "
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-xml=expat \
+ --with-dbus-user=messagebus \
+ --with-system-pid-file=/var/run/dbus.pid \
+ --disable-verbose-mode \
+ --disable-static \
+ --enable-inotify \
+ --disable-dnotify \
+ --disable-tests \
+ --disable-asserts \
+ --with-x || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install
+ install -Dm755 "$srcdir"/dbus.initd "$pkgdir"/etc/init.d/dbus
+}
+md5sums="c7a47b851ebe02f6726b65b78d1b730b dbus-1.2.16.tar.gz
+58356b4db650a89312a670c02804c540 dbus.initd"
diff --git a/main/dbus/dbus.initd b/main/dbus/dbus.initd
new file mode 100644
index 0000000000..e96ea05cd1
--- /dev/null
+++ b/main/dbus/dbus.initd
@@ -0,0 +1,51 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/dbus/files/dbus.init-1.0,v 1.4 2007/04/04 13:35:25 cardoe Exp $
+
+opts="reload"
+
+depend() {
+ need localmount
+ after bootmisc
+}
+
+start() {
+ ebegin "Starting D-BUS system messagebus"
+
+ /usr/bin/dbus-uuidgen --ensure
+
+ # We need to test if /var/run/dbus exists, since script will fail if it does not
+ [ ! -e /var/run/dbus ] && mkdir /var/run/dbus
+
+ start-stop-daemon --start --pidfile /var/run/dbus.pid --exec /usr/bin/dbus-daemon -- --system
+ eend $?
+}
+
+stop() {
+ local retval
+
+ ebegin "Stopping D-BUS system messagebus"
+
+ start-stop-daemon --stop --pidfile /var/run/dbus.pid
+ retval=$?
+
+ eend ${retval}
+
+ [ -S /var/run/dbus/system_bus_socket ] && rm -f /var/run/dbus/system_bus_socket
+
+ return ${retval}
+}
+
+reload() {
+ local retval
+
+ ebegin "Reloading D-BUS messagebus config"
+
+ /usr/bin/dbus-send --print-reply --system --type=method_call \
+ --dest=org.freedesktop.DBus \
+ / org.freedesktop.DBus.ReloadConfig > /dev/null
+ retval=$?
+ eend ${retval}
+ return ${retval}
+}
diff --git a/main/dbus/dbus.pre-install b/main/dbus/dbus.pre-install
new file mode 100644
index 0000000000..515161db61
--- /dev/null
+++ b/main/dbus/dbus.pre-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+adduser -H -h /dev/null -s /bin/false -D messagebus 2>/dev/null
+exit 0
diff --git a/main/desktop-file-utils/APKBUILD b/main/desktop-file-utils/APKBUILD
new file mode 100644
index 0000000000..b4b373fe13
--- /dev/null
+++ b/main/desktop-file-utils/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=desktop-file-utils
+pkgver=0.15
+pkgrel=1
+pkgdesc="Command line utilities for working with desktop entries"
+url="http://www.freedesktop.org/wiki/Software/desktop-file-utils"
+license="GPL"
+depends=
+makedepends="glib-dev libiconv-dev gettext-dev pkgconfig"
+triggers="$pkgname.trigger:/usr/share/applications"
+source="http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/desktop-file-utils-$pkgver
+
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="2fe8ebe222fc33cd4a959415495b7eed desktop-file-utils-0.15.tar.gz"
diff --git a/main/desktop-file-utils/desktop-file-utils.trigger b/main/desktop-file-utils/desktop-file-utils.trigger
new file mode 100644
index 0000000000..0400e9a2b9
--- /dev/null
+++ b/main/desktop-file-utils/desktop-file-utils.trigger
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+update-desktop-database -q
diff --git a/main/dhcpcd-dbus/APKBUILD b/main/dhcpcd-dbus/APKBUILD
new file mode 100644
index 0000000000..ed4415aff8
--- /dev/null
+++ b/main/dhcpcd-dbus/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dhcpcd-dbus
+pkgver=0.4.2
+pkgrel=0
+pkgdesc="DBUS binding to dhcpcd"
+url="http://roy.marples.name/projects/dhcpcd-dbus"
+license="BSD"
+depends=""
+makedepends="dbus-dev pkgconfig"
+install=
+subpackages=
+source="http://roy.marples.name/downloads/dhcpcd/dhcpcd-dbus-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make PREFIX=/usr SYSCONFDIR=/etc/dbus-1/system.d
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" PREFIX=/usr SYSCONFDIR=/etc/dbus-1/system.d \
+ install
+}
+
+md5sums="c42ee474f21fd813abf5d04f56110a79 dhcpcd-dbus-0.4.2.tar.bz2"
diff --git a/main/dhcpcd-ui/APKBUILD b/main/dhcpcd-ui/APKBUILD
new file mode 100644
index 0000000000..2732f1c73a
--- /dev/null
+++ b/main/dhcpcd-ui/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dhcpcd-ui
+pkgver=0.4.3
+pkgrel=0
+pkgdesc="A GTK+ monitor and configuration GUI for dhcpcd"
+url="http://roy.marples.name/projects/dhcpcd-dbus"
+license="BSD-2"
+depends="dhcpcd-dbus"
+makedepends="glib-dev gtk+-dev dbus-dev libnotify-dev pkgconfig"
+install=
+subpackages=
+source="http://roy.marples.name/downloads/dhcpcd/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make PREFIX=/usr
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" PREFIX=/usr SYSCONFDIR=/etc/dbus-1/system.d \
+ install
+}
+
+md5sums="2a01fa94c79699807131c488b47d9dc8 dhcpcd-ui-0.4.3.tar.bz2"
diff --git a/main/dri2proto/APKBUILD b/main/dri2proto/APKBUILD
new file mode 100644
index 0000000000..77f866e5f3
--- /dev/null
+++ b/main/dri2proto/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=dri2proto
+pkgver=2.1
+pkgrel=0
+pkgdesc="X11 DRI protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="5cb7987d29db068153bdc8f23c767c43 dri2proto-2.1.tar.bz2"
diff --git a/main/enchant/APKBUILD b/main/enchant/APKBUILD
new file mode 100644
index 0000000000..8133127b47
--- /dev/null
+++ b/main/enchant/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=enchant
+pkgver=1.5.0
+pkgrel=1
+pkgdesc="A wrapper library for generic spell checking"
+url="http://www.abisource.com/enchant/"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+depends_dev="glib-dev"
+makedepends="aspell-dev dbus-glib-dev hunspell-dev libiconv-dev gettext-dev"
+source="http://www.abisource.com/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="7dfaed14e142b4a0004b770c9568ed02 enchant-1.5.0.tar.gz"
diff --git a/main/encodings/APKBUILD b/main/encodings/APKBUILD
new file mode 100644
index 0000000000..7b9cca22ca
--- /dev/null
+++ b/main/encodings/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=encodings
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="X.org font encoding files"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig mkfontscale"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/encodings-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/encodings-$pkgver
+ ./configure --prefix=/usr \
+ --with-encodingsdir=/usr/share/fonts/encodings
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/encodings-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="29637480e7ce12546668631067c19ced encodings-1.0.3.tar.bz2"
diff --git a/main/epdfview/APKBUILD b/main/epdfview/APKBUILD
new file mode 100644
index 0000000000..fdd6e41866
--- /dev/null
+++ b/main/epdfview/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=epdfview
+pkgver=0.1.7
+pkgrel=1
+pkgdesc="A free lightweight PDF document viewer."
+url="http://www.emma-soft.com/projects/epdfview/"
+license="GPL"
+#depends="poppler-glib>=0.10.0 heimdal>=1.2.1-1 libcups>=1.3.7-2 gnutls>=2.4.1
+depends="desktop-file-utils hicolor-icon-theme"
+makedepends="poppler-gtk-dev"
+source="http://www.emma-soft.com/projects/$pkgname/chrome/site/releases/$pkgname-$pkgver.tar.bz2
+ $pkgname.desktop.patch
+ fix-scrolling.patch"
+
+build ()
+{
+ cd ""$srcdir"/$pkgname-$pkgver"
+ patch -Np0 -i ../epdfview.desktop.patch || return 1
+ patch -Np0 -i ../fix-scrolling.patch || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" install || return 1
+ for i in 24 32 48; do
+ install -d "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps \
+ || return 1
+ done
+ install -m644 data/icon_epdfview-24.png \
+ "$pkgdir"/usr/share/icons/hicolor/24x24/apps/epdfview.png
+ install -m644 data/icon_epdfview-32.png \
+ "$pkgdir"/usr/share/icons/hicolor/32x32/apps/epdfview.png
+ install -m644 data/icon_epdfview-48.png \
+ "$pkgdir"/usr/share/icons/hicolor/48x48/apps/epdfview.png
+}
+
+md5sums="1919bb19c16ef0a97d48b0a8303d3c7b epdfview-0.1.7.tar.bz2
+fbf22bbabdbb7544db615ac5775d57e2 epdfview.desktop.patch
+7a1574e0a8d0bcde316050629fb7bedd fix-scrolling.patch"
diff --git a/main/epdfview/epdfview.desktop.patch b/main/epdfview/epdfview.desktop.patch
new file mode 100644
index 0000000000..d86fc30883
--- /dev/null
+++ b/main/epdfview/epdfview.desktop.patch
@@ -0,0 +1,11 @@
+--- data/epdfview.desktop.bak 2009-04-05 16:55:56.000000000 -0700
++++ data/epdfview.desktop 2009-04-05 16:56:33.000000000 -0700
+@@ -7,7 +7,7 @@
+ GenericName=PDF Viewer
+ GenericName[ca]=Visor PDF
+ GenericName[es]=Visor PDF
+-Icon=icon_epdfview-48
++Icon=epdfview
+ Name=ePDFViewer
+ Name[ca]=ePDFViewer
+ Name[es]=ePDFViewer
diff --git a/main/epdfview/fix-scrolling.patch b/main/epdfview/fix-scrolling.patch
new file mode 100644
index 0000000000..828bf12587
--- /dev/null
+++ b/main/epdfview/fix-scrolling.patch
@@ -0,0 +1,33 @@
+--- ./src/gtk/MainView.cxx.old 2009-02-28 22:00:55.000000000 +0100
++++ ./src/gtk/MainView.cxx 2009-03-20 03:12:10.000000000 +0100
+@@ -77,7 +77,7 @@
+ static void main_window_zoom_out_cb (GtkWidget *, gpointer);
+ static void main_window_zoom_width_cb (GtkToggleAction *, gpointer);
+ static void main_window_set_page_mode (GtkRadioAction *, GtkRadioAction *, gpointer);
+-static void main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
++static gboolean main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
+
+ #if defined (HAVE_CUPS)
+ static void main_window_print_cb (GtkWidget *, gpointer);
+@@ -1479,18 +1479,19 @@
+ pter->setPageMode (mode);
+ }
+
+-void
++gboolean
+ main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data)
+ {
+ g_assert ( NULL != data && "The data parameter is NULL.");
+
+ MainPter *pter = (MainPter *)data;
+ // Only zoom when the CTRL-Button is down...
+- if ( !(event->state & GDK_CONTROL_MASK) ) return;
++ if ( !(event->state & GDK_CONTROL_MASK) ) return FALSE;
+ if ( event->direction == GDK_SCROLL_UP ) {
+ pter->zoomInActivated ();
+ } else if ( event->direction == GDK_SCROLL_DOWN ) {
+ pter->zoomOutActivated ();
+ }
++ return TRUE;
+ }
+
diff --git a/main/epris/APKBUILD b/main/epris/APKBUILD
new file mode 100644
index 0000000000..eb1aaf0b88
--- /dev/null
+++ b/main/epris/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=epris
+pkgver=0.2
+pkgrel=0
+pkgdesc="Small audio player using GStreamer and DBus"
+url="http://code.google.com/p/epris/"
+license="LGPL"
+depends=""
+makedepends="gstreamer-dev dbus-glib-dev"
+install=
+subpackages=
+source="http://epris.googlecode.com/files/epris-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="94ec5123207d34834eaa345435964f99 epris-0.2.tar.gz"
diff --git a/main/exo/APKBUILD b/main/exo/APKBUILD
new file mode 100644
index 0000000000..6b7d6ef966
--- /dev/null
+++ b/main/exo/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+# TODO: hal
+pkgname=exo
+pkgver=0.3.106
+pkgrel=0
+pkgdesc="Extensions to Xfce by os-cillation"
+url="http://www.os-cillation.com/article.php?sid=40"
+license="GPL-2 LGPL-2"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="hicolor-icon-theme"
+makedepends="intltool libxfce4util-dev perl perl-uri gtk+-dev gettext-dev
+ libiconv-dev libnotify-dev"
+install=
+source="http://archive.xfce.org/src/xfce/$pkgname/0.3/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="gtk+-dev libxfce4util-dev"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static \
+ --disable-python \
+ --enable-notifications \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="927905f89252fa397e50d7a4fbf3c9a7 exo-0.3.106.tar.bz2"
diff --git a/main/feh/APKBUILD b/main/feh/APKBUILD
new file mode 100644
index 0000000000..a609b8d994
--- /dev/null
+++ b/main/feh/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=feh
+pkgver=1.3.4
+pkgrel=0
+pkgdesc="feh is a fast, lightweight image viewer which uses imlib2"
+url="http://www.linuxbrit.co.uk/feh/"
+license="MIT"
+subpackages="$pkgname-doc"
+depends=
+makedepends="libxt-dev libpng-dev giblib-dev imlib2-dev jpeg-dev"
+source="http://linuxbrit.co.uk/downloads/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man || return 1
+ make || return 1
+ make DESTDIR=$pkgdir docsdir=/usr/share/doc/feh install || return 1
+ install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+md5sums="3d35ba3d2f0693b019800787f1103891 feh-1.3.4.tar.gz"
diff --git a/main/ffmpeg/APKBUILD b/main/ffmpeg/APKBUILD
new file mode 100644
index 0000000000..fcad6fe1b3
--- /dev/null
+++ b/main/ffmpeg/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ffmpeg
+pkgver=0.5
+pkgrel=0
+pkgdesc="Complete and free Internet live audio and video broadcasting solution for Linux/Unix"
+url="http://ffmpeg.mplayerhq.hu/"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="lame-dev libvorbis-dev faad2-dev faac-dev xvidcore-dev zlib-dev
+ imlib2-dev x264-dev libtheora-dev coreutils bzip2-dev perl"
+depends=""
+source="http://$pkgname.mplayerhq.hu/releases/$pkgname-$pkgver.tar.bz2
+ pic.patch"
+
+build ()
+{
+ cd "$srcdir/$pkgname-$pkgver" || return 1
+ patch -p1 < ../pic.patch || return 1
+
+ ./configure --prefix=/usr \
+ --enable-gpl \
+ --enable-libmp3lame \
+ --enable-libvorbis \
+ --enable-libfaac \
+ --enable-libfaad \
+ --enable-libxvid \
+ --enable-libx264 \
+ --enable-libtheora \
+ --enable-postproc \
+ --enable-shared \
+ --enable-pthreads \
+ --enable-x11grab \
+ --disable-mmx \
+ --disable-mmx2 \
+ --disable-stripping \
+ --enable-swscale || return 1
+ make || return 1
+ make tools/qt-faststart || return 1
+ make doc/ffmpeg.1 doc/ffplay.1 doc/ffserver.1 || return 1
+ make DESTDIR="$pkgdir" install install-man || return 1
+ install -D -m755 tools/qt-faststart "$pkgdir/usr/bin/qt-faststart" || return 1
+# strip --strip-debug "$pkgdir"/usr/lib/*.a || return 1
+}
+md5sums="be8503f15c3b81ba00eb8379ca8dcf33 ffmpeg-0.5.tar.bz2
+3c5d446db8d512a3bca5f5a860bbcc04 pic.patch"
diff --git a/main/ffmpeg/pic.patch b/main/ffmpeg/pic.patch
new file mode 100644
index 0000000000..9651f31ef1
--- /dev/null
+++ b/main/ffmpeg/pic.patch
@@ -0,0 +1,11 @@
+--- a/libswscale/rgb2rgb.c 2009-07-10 14:27:39.000000000 +0000
++++ b/libswscale/rgb2rgb.c 2009-07-10 14:53:45.000000000 +0000
+@@ -149,7 +149,7 @@
+ #define RENAME(a) a ## _C
+ #include "rgb2rgb_template.c"
+
+-#if ARCH_X86 && CONFIG_GPL
++#if ARCH_X86 && CONFIG_GPL && !defined(PIC)
+
+ //MMX versions
+ #undef RENAME
diff --git a/main/fixesproto/APKBUILD b/main/fixesproto/APKBUILD
new file mode 100644
index 0000000000..888f97ed04
--- /dev/null
+++ b/main/fixesproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=fixesproto
+pkgver=4.1.1
+pkgrel=1
+pkgdesc="X11 Fixes extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="xextproto"
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="4c1cb4f2ed9f34de59f2f04783ca9483 fixesproto-4.1.1.tar.bz2"
diff --git a/main/fluxbox/APKBUILD b/main/fluxbox/APKBUILD
new file mode 100644
index 0000000000..4229d1bba8
--- /dev/null
+++ b/main/fluxbox/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=fluxbox
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="A lightweight and highly-configurable window manager"
+url="http://www.fluxbox.org"
+license="MIT"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libxinerama-dev libxpm-dev libxrandr imlib2-dev
+ libxrender-dev libxrandr-dev libxinerama-dev"
+source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-kde \
+ --disable-gnome \
+ --enable-imlib2 \
+ --disable-nls || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="fa9fa8fe9a44f86522de5754f8b285ca fluxbox-1.1.1.tar.bz2"
diff --git a/main/font-adobe-100dpi/APKBUILD b/main/font-adobe-100dpi/APKBUILD
new file mode 100644
index 0000000000..c56dc913fe
--- /dev/null
+++ b/main/font-adobe-100dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-adobe-100dpi
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org adobe 100dpi font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/100dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="443acfe70e26716282f9068730fe92c4 font-adobe-100dpi-1.0.0.tar.bz2"
diff --git a/main/font-adobe-75dpi/APKBUILD b/main/font-adobe-75dpi/APKBUILD
new file mode 100644
index 0000000000..aaa7e3cc41
--- /dev/null
+++ b/main/font-adobe-75dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-adobe-75dpi
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org adobe 75dpi font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/75dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="813b5d3723c84388a938ab6732e1329c font-adobe-75dpi-1.0.0.tar.bz2"
diff --git a/main/font-adobe-utopia-100dpi/APKBUILD b/main/font-adobe-utopia-100dpi/APKBUILD
new file mode 100644
index 0000000000..54bfa807bb
--- /dev/null
+++ b/main/font-adobe-utopia-100dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-adobe-utopia-100dpi
+pkgver=1.0.1
+pkgrel=2
+pkgdesc="X.org adobe 100dpi font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/100dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="5d28a30efef966f8dbbaff9a6619f01a font-adobe-utopia-100dpi-1.0.1.tar.bz2"
diff --git a/main/font-adobe-utopia-75dpi/APKBUILD b/main/font-adobe-utopia-75dpi/APKBUILD
new file mode 100644
index 0000000000..9ef0813a7e
--- /dev/null
+++ b/main/font-adobe-utopia-75dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-adobe-utopia-75dpi
+pkgver=1.0.1
+pkgrel=2
+pkgdesc="X.org adobe 75dpi font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/75dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="dd912284e4750023f9682812532fa033 font-adobe-utopia-75dpi-1.0.1.tar.bz2"
diff --git a/main/font-adobe-utopia-type1/APKBUILD b/main/font-adobe-utopia-type1/APKBUILD
new file mode 100644
index 0000000000..81303c535b
--- /dev/null
+++ b/main/font-adobe-utopia-type1/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-adobe-utopia-type1
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="X.org adobe utopia-type1 fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/utopia-type1
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="aa7ff4bd20b961afda9c15d103b972a5 font-adobe-utopia-type1-1.0.1.tar.bz2"
diff --git a/main/font-alias/APKBUILD b/main/font-alias/APKBUILD
new file mode 100644
index 0000000000..4e44482763
--- /dev/null
+++ b/main/font-alias/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-alias
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="X.org font alias files"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-top-fontdir=/usr/share/fonts
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="c4776b6f0f2ecdb7670b6fe64b5d2a2d font-alias-1.0.1.tar.bz2"
diff --git a/main/font-arabic-misc/APKBUILD b/main/font-arabic-misc/APKBUILD
new file mode 100644
index 0000000000..53b3ac8c60
--- /dev/null
+++ b/main/font-arabic-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-arabic-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="81595016e2ff859716fc256ebb136ba6 font-arabic-misc-1.0.0.tar.bz2"
diff --git a/main/font-bh-100dpi/APKBUILD b/main/font-bh-100dpi/APKBUILD
new file mode 100644
index 0000000000..37f4cd1f36
--- /dev/null
+++ b/main/font-bh-100dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bh-100dpi
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.Org Bigelow & Holmes bitmap fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/100dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="e5592de74a5c04e3a2608800dd079197 font-bh-100dpi-1.0.0.tar.bz2"
diff --git a/main/font-bh-75dpi/APKBUILD b/main/font-bh-75dpi/APKBUILD
new file mode 100644
index 0000000000..dd22ad8c74
--- /dev/null
+++ b/main/font-bh-75dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bh-75dpi
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.Org Bigelow & Holmes bitmap fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/75dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="6e51cd02f4ce32e1393e34ab17a9b211 font-bh-75dpi-1.0.0.tar.bz2"
diff --git a/main/font-bh-lucidatypewriter-100dpi/APKBUILD b/main/font-bh-lucidatypewriter-100dpi/APKBUILD
new file mode 100644
index 0000000000..b1bb4fc2b1
--- /dev/null
+++ b/main/font-bh-lucidatypewriter-100dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bh-lucidatypewriter-100dpi
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.Org Bigelow & Holmes Lucida bitmap fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/100dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="c44d3f730564da465993e9292a33c235 font-bh-lucidatypewriter-100dpi-1.0.0.tar.bz2"
diff --git a/main/font-bh-lucidatypewriter-75dpi/APKBUILD b/main/font-bh-lucidatypewriter-75dpi/APKBUILD
new file mode 100644
index 0000000000..cd5ee83e4a
--- /dev/null
+++ b/main/font-bh-lucidatypewriter-75dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bh-lucidatypewriter-75dpi
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.Org Bigelow & Holmes Lucida bitmap fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/75dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="fdd9be5b9db94ef363a33e39b7977e2b font-bh-lucidatypewriter-75dpi-1.0.0.tar.bz2"
diff --git a/main/font-bh-ttf/APKBUILD b/main/font-bh-ttf/APKBUILD
new file mode 100644
index 0000000000..31cd28b6a9
--- /dev/null
+++ b/main/font-bh-ttf/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bh-ttf
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org bh TTF fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/TTF
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="ad43cf739b3d46ba1e7dc778a0608a52 font-bh-ttf-1.0.0.tar.bz2"
diff --git a/main/font-bh-type1/APKBUILD b/main/font-bh-type1/APKBUILD
new file mode 100644
index 0000000000..43b5566331
--- /dev/null
+++ b/main/font-bh-type1/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bh-type1
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org bh Type1 fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/Type1
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="46588b22678e440741d6220bc3945cbf font-bh-type1-1.0.0.tar.bz2"
diff --git a/main/font-bitstream-100dpi/APKBUILD b/main/font-bitstream-100dpi/APKBUILD
new file mode 100644
index 0000000000..c27cd04769
--- /dev/null
+++ b/main/font-bitstream-100dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bitstream-100dpi
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.Org Bitstream bitmap fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/100dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="173352ddec3d26e2b91df1edcf1ae85b font-bitstream-100dpi-1.0.0.tar.bz2"
diff --git a/main/font-bitstream-75dpi/APKBUILD b/main/font-bitstream-75dpi/APKBUILD
new file mode 100644
index 0000000000..8fcc05b2e2
--- /dev/null
+++ b/main/font-bitstream-75dpi/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bitstream-75dpi
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.Org Bitstream bitmap fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/75dpi
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="beb476657d50d07d17eef7c325a5ed08 font-bitstream-75dpi-1.0.0.tar.bz2"
diff --git a/main/font-bitstream-speedo/APKBUILD b/main/font-bitstream-speedo/APKBUILD
new file mode 100644
index 0000000000..0dbbab1ba8
--- /dev/null
+++ b/main/font-bitstream-speedo/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bitstream-speedo
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org bitstream Speedo fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/Speedo
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="1399dc18aeb9571b0951d9570ea1059d font-bitstream-speedo-1.0.0.tar.bz2"
diff --git a/main/font-bitstream-type1/APKBUILD b/main/font-bitstream-type1/APKBUILD
new file mode 100644
index 0000000000..12f38f0413
--- /dev/null
+++ b/main/font-bitstream-type1/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-bitstream-type1
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org bitstream Type1 fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/Type1
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="6610475e2e231242f8f2122a709c3695 font-bitstream-type1-1.0.0.tar.bz2"
diff --git a/main/font-cronyx-cyrillic/APKBUILD b/main/font-cronyx-cyrillic/APKBUILD
new file mode 100644
index 0000000000..e4b155815e
--- /dev/null
+++ b/main/font-cronyx-cyrillic/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-cronyx-cyrillic
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org cronyx cyrillic fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/cyrillic
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="22b451e7230b8c003cfc496ee2d360cc font-cronyx-cyrillic-1.0.0.tar.bz2"
diff --git a/main/font-cursor-misc/APKBUILD b/main/font-cursor-misc/APKBUILD
new file mode 100644
index 0000000000..3b3ca078dc
--- /dev/null
+++ b/main/font-cursor-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-cursor-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="305fa22cdfefb8f80babd711051a534b font-cursor-misc-1.0.0.tar.bz2"
diff --git a/main/font-daewoo-misc/APKBUILD b/main/font-daewoo-misc/APKBUILD
new file mode 100644
index 0000000000..9f8719f4c6
--- /dev/null
+++ b/main/font-daewoo-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-daewoo-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="61f9eab48c619af5494d3e384d8d7d79 font-daewoo-misc-1.0.0.tar.bz2"
diff --git a/main/font-dec-misc/APKBUILD b/main/font-dec-misc/APKBUILD
new file mode 100644
index 0000000000..c8d7b07c80
--- /dev/null
+++ b/main/font-dec-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-dec-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="284e554db1c64fb7580a06df01444a2b font-dec-misc-1.0.0.tar.bz2"
diff --git a/main/font-ibm-type1/APKBUILD b/main/font-ibm-type1/APKBUILD
new file mode 100644
index 0000000000..34a9e26441
--- /dev/null
+++ b/main/font-ibm-type1/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-ibm-type1
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org ibm Type1 fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/Type1
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="8e8733051371e2b51123376b49f5d3ea font-ibm-type1-1.0.0.tar.bz2"
diff --git a/main/font-isas-misc/APKBUILD b/main/font-isas-misc/APKBUILD
new file mode 100644
index 0000000000..2a3fcd3f98
--- /dev/null
+++ b/main/font-isas-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-isas-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="ec709a96b64b497a5cb5658c93bd38dc font-isas-misc-1.0.0.tar.bz2"
diff --git a/main/font-jis-misc/APKBUILD b/main/font-jis-misc/APKBUILD
new file mode 100644
index 0000000000..70071bfcc1
--- /dev/null
+++ b/main/font-jis-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-jis-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="61febb49a71065723a1fba17cbf23c67 font-jis-misc-1.0.0.tar.bz2"
diff --git a/main/font-micro-misc/APKBUILD b/main/font-micro-misc/APKBUILD
new file mode 100644
index 0000000000..d2ca0977b3
--- /dev/null
+++ b/main/font-micro-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-micro-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="8c8bffd7540f05caa0dbb4e6e1d6c58e font-micro-misc-1.0.0.tar.bz2"
diff --git a/main/font-misc-cyrillic/APKBUILD b/main/font-misc-cyrillic/APKBUILD
new file mode 100644
index 0000000000..d49c2cf946
--- /dev/null
+++ b/main/font-misc-cyrillic/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-misc-cyrillic
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org misc cyrillic fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/cyrillic
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="3596907d7a2a99c81d8de99bc4552b6a font-misc-cyrillic-1.0.0.tar.bz2"
diff --git a/main/font-misc-ethiopic/APKBUILD b/main/font-misc-ethiopic/APKBUILD
new file mode 100644
index 0000000000..cf2a54984d
--- /dev/null
+++ b/main/font-misc-ethiopic/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-misc-ethiopic
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org misc ethiopic fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/ethiopic
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="0b271fc617087d77560bdca20c0cdbb0 font-misc-ethiopic-1.0.0.tar.bz2"
diff --git a/main/font-misc-meltho/APKBUILD b/main/font-misc-meltho/APKBUILD
new file mode 100644
index 0000000000..1ba95b9bb9
--- /dev/null
+++ b/main/font-misc-meltho/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-misc-meltho
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org misc meltho fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/meltho
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="ccb212a7badf7aefdc9f9a92af428d32 font-misc-meltho-1.0.0.tar.bz2"
diff --git a/main/font-misc-misc/APKBUILD b/main/font-misc-misc/APKBUILD
new file mode 100644
index 0000000000..63038836c4
--- /dev/null
+++ b/main/font-misc-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-misc-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="2a57f6188c41d4bc1b88ca3d08ad011d font-misc-misc-1.0.0.tar.bz2"
diff --git a/main/font-mutt-misc/APKBUILD b/main/font-mutt-misc/APKBUILD
new file mode 100644
index 0000000000..63c63f49e7
--- /dev/null
+++ b/main/font-mutt-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-mutt-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="648b409b7eb78ad1cd5f6d7fac3eef88 font-mutt-misc-1.0.0.tar.bz2"
diff --git a/main/font-schumacher-misc/APKBUILD b/main/font-schumacher-misc/APKBUILD
new file mode 100644
index 0000000000..5693c51687
--- /dev/null
+++ b/main/font-schumacher-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-schumacher-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="f1c6063d2fadc57e696a0aab69afd6e0 font-schumacher-misc-1.0.0.tar.bz2"
diff --git a/main/font-screen-cyrillic/APKBUILD b/main/font-screen-cyrillic/APKBUILD
new file mode 100644
index 0000000000..5f2b143af4
--- /dev/null
+++ b/main/font-screen-cyrillic/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-screen-cyrillic
+pkgver=1.0.1
+pkgrel=1
+pkgdesc="X.org screen cyrillic fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/cyrillic
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="c8d5aef01c906c7aaea329702a8b1b63 font-screen-cyrillic-1.0.1.tar.bz2"
diff --git a/main/font-sony-misc/APKBUILD b/main/font-sony-misc/APKBUILD
new file mode 100644
index 0000000000..cc346436a9
--- /dev/null
+++ b/main/font-sony-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-sony-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="0dfddd1a946e4497f009094c0ae1bdd5 font-sony-misc-1.0.0.tar.bz2"
diff --git a/main/font-sun-misc/APKBUILD b/main/font-sun-misc/APKBUILD
new file mode 100644
index 0000000000..9f50fc326c
--- /dev/null
+++ b/main/font-sun-misc/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-sun-misc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="X.org misc font"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/misc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="e17d43a7c6c0d862cfba0908ff132ffa font-sun-misc-1.0.0.tar.bz2"
diff --git a/main/font-util/APKBUILD b/main/font-util/APKBUILD
new file mode 100644
index 0000000000..d7bbb361d4
--- /dev/null
+++ b/main/font-util/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-util
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="X.org font utilities"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="perl"
+makedepends="pkgconfig"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make -j1 DESTDIR="$pkgdir" install || return 1
+}
+md5sums="5c735ae6916b65186f3c876d76c27ce3 font-util-1.1.1.tar.bz2"
diff --git a/main/font-winitzki-cyrillic/APKBUILD b/main/font-winitzki-cyrillic/APKBUILD
new file mode 100644
index 0000000000..fe1a60d0be
--- /dev/null
+++ b/main/font-winitzki-cyrillic/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-winitzki-cyrillic
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="X.org winitzki cyrillic fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/cyrillic
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="b99b02aff36a88ca3379715423c60303 font-winitzki-cyrillic-1.0.0.tar.bz2"
diff --git a/main/font-xfree86-type1/APKBUILD b/main/font-xfree86-type1/APKBUILD
new file mode 100644
index 0000000000..42b22285be
--- /dev/null
+++ b/main/font-xfree86-type1/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=font-xfree86-type1
+pkgver=1.0.1
+pkgrel=2
+pkgdesc="X.org xfree86 Type1 fonts"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="encodings font-alias mkfontscale mkfontdir fontconfig"
+makedepends="pkgconfig font-util-dev bdftopcf"
+install=
+source="http://xorg.freedesktop.org/releases/individual/font/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-mapfiles=/usr/share/fonts/util \
+ --with-fontdir=/usr/share/fonts/Type1
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" MKFONTDIR=: MKFONTSCALE=: install || return 1
+}
+
+md5sums="d7e965776c7f0c30b0f09742176fb77a font-xfree86-type1-1.0.1.tar.bz2"
diff --git a/main/fontconfig/APKBUILD b/main/fontconfig/APKBUILD
new file mode 100644
index 0000000000..3ae0ffd41f
--- /dev/null
+++ b/main/fontconfig/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=fontconfig
+pkgver=2.8.0
+pkgrel=0
+pkgdesc="The Fontconfig package is a library for configuring and customizing font access."
+url="http://fontconfig.org"
+license="GPL"
+depends=
+makedepends="pkgconfig freetype-dev expat-dev zlib-dev"
+install=
+triggers="$pkgname.trigger:/usr/share/fonts/*"
+subpackages="$pkgname-doc $pkgname-dev"
+source="http://fontconfig.org/release/${pkgname}-${pkgver}.tar.gz"
+depends_dev="freetype-dev expat-dev"
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-docs
+ make || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -j1 DESTDIR="$pkgdir" install
+
+ install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING
+}
+
+md5sums="77e15a92006ddc2adbb06f840d591c0e fontconfig-2.8.0.tar.gz"
diff --git a/main/fontconfig/fontconfig.trigger b/main/fontconfig/fontconfig.trigger
new file mode 100644
index 0000000000..35f3d37ebf
--- /dev/null
+++ b/main/fontconfig/fontconfig.trigger
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+fc-cache -f > /dev/null
+
diff --git a/main/fontsproto/APKBUILD b/main/fontsproto/APKBUILD
new file mode 100644
index 0000000000..b8eb75bbdd
--- /dev/null
+++ b/main/fontsproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=fontsproto
+pkgver=2.1.0
+pkgrel=0
+pkgdesc="X11 font extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="f3a857deadca3144fba041af1dbf7603 fontsproto-2.1.0.tar.bz2"
diff --git a/main/gamin/APKBUILD b/main/gamin/APKBUILD
new file mode 100644
index 0000000000..730271afb4
--- /dev/null
+++ b/main/gamin/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gamin
+pkgver=0.1.10
+pkgrel=1
+pkgdesc="Gamin is a file and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor) system."
+url="http://www.gnome.org/~veillard/gamin"
+license="GPL"
+subpackages="$pkgname-dev"
+depends=
+makedepends="pkgconfig glib-dev"
+source="http://www.gnome.org/~veillard/$pkgname/sources/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-static \
+ --with-threads \
+ --disable-debug-api \
+ --disable-debug \
+ --disable-dnotify \
+ --libexecdir=/usr/lib/gamin
+ make || return 1
+
+ # some kinde of race in the make install which is not solved with -j
+ export MKDIRPROG="mkdir -p"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="b4ec549e57da470c04edd5ec2876a028 gamin-0.1.10.tar.gz"
diff --git a/main/geany/APKBUILD b/main/geany/APKBUILD
new file mode 100644
index 0000000000..cb1f4b9a4d
--- /dev/null
+++ b/main/geany/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=geany
+pkgver=0.18
+pkgrel=0
+pkgdesc="A fast and lightweight IDE"
+url="http://www.geany.org"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="gtk+-dev intltool perl-xml-parser vte-dev"
+depends=
+depends_dev="gtk+-dev"
+install=
+source="http://download.$pkgname.org/$pkgname-$pkgver.tar.gz"
+
+build()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ sed -i 's|MimeType=text/plain;|MimeType=|' geany.desktop || return 1
+ sed -i 's|Sh=|Sh=APKBUILD;|' data/filetype_extensions.conf || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="e5d4075dcb486d3cec958c2bac9ce8f4 geany-0.18.tar.gz"
diff --git a/main/giblib/APKBUILD b/main/giblib/APKBUILD
new file mode 100644
index 0000000000..e7242d8695
--- /dev/null
+++ b/main/giblib/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=giblib
+pkgver=1.2.4
+pkgrel=1
+pkgdesc="Giblib is a library that feh uses as a wrapper to imlib2"
+url="http://linuxbrit.co.uk/giblib/"
+license="MIT"
+subpackages="$pkgname-doc $pkgname-dev"
+depends=
+makedepends="imlib2-dev libxext-dev libx11-dev freetype-dev"
+source="http://linuxbrit.co.uk/downloads/$pkgname-$pkgver.tar.gz"
+
+depends_dev="imlib2-dev freetype-dev zlib-dev libx11-dev libxext-dev"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" docsdir=/usr/share/doc/giblib install || return 1
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="c810ef5389baf24882a1caca2954385e giblib-1.2.4.tar.gz"
diff --git a/main/giflib/APKBUILD b/main/giflib/APKBUILD
new file mode 100644
index 0000000000..4ea64b882b
--- /dev/null
+++ b/main/giflib/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=giflib
+pkgver=4.1.6
+pkgrel=1
+pkgdesc="A library for reading and writing gif images"
+url="http://sourceforge.net/projects/giflib/"
+license="MIT"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="libx11-dev libsm-dev util-linux-ng-dev"
+source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ MAJOR=`echo $pkgver | sed 's/\([0-9]\+\)\..*/\1/'`
+ gcc -shared -Wl,-soname,libungif.so.${MAJOR} -Llib/.libs -lgif -o libungif.so.$pkgver || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING \
+ || return 1
+
+ install -m755 libungif.so.$pkgver "$pkgdir"/usr/lib/ || return 1
+ ln -sf libungif.so.$pkgver "$pkgdir"/usr/lib/libungif.so.4 || return 1
+ ln -sf libungif.so.4 "$pkgdir"/usr/lib/libungif.so || return 1
+}
+md5sums="7125644155ae6ad33dbc9fc15a14735f giflib-4.1.6.tar.bz2"
diff --git a/main/glproto/APKBUILD b/main/glproto/APKBUILD
new file mode 100644
index 0000000000..7aadaa1eed
--- /dev/null
+++ b/main/glproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=glproto
+pkgver=1.4.10
+pkgrel=0
+pkgdesc="X11 OpenGL extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="c9f8cebfba72bfab674bc0170551fb8d glproto-1.4.10.tar.bz2"
diff --git a/main/gnome-doc-utils/APKBUILD b/main/gnome-doc-utils/APKBUILD
new file mode 100644
index 0000000000..9641482c7f
--- /dev/null
+++ b/main/gnome-doc-utils/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gnome-doc-utils
+pkgver=0.16.1
+pkgrel=0
+pkgdesc="Documentation utilities for Gnome"
+url="http://www.gnome.org"
+license="GPL LGPL"
+depends="python docbook-xml rarian"
+makedepends="libxslt-dev libxml2-dev perl-xml-parser rarian-dev pkgconfig
+ gettext-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/0.16/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd ""$srcdir"/$pkgname-$pkgver"
+ ./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man --localstatedir=/var --disable-scrollkeeper || return 1
+ make || return 1
+ make DESTDIR=""$pkgdir"" install || return 1
+}
+md5sums="85d4bba44773f6162de72e81e8bd0ab0 gnome-doc-utils-0.16.1.tar.bz2"
diff --git a/main/gst-plugins-bad/APKBUILD b/main/gst-plugins-bad/APKBUILD
new file mode 100644
index 0000000000..97eb64f268
--- /dev/null
+++ b/main/gst-plugins-bad/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gst-plugins-bad
+pkgver=0.10.14
+pkgrel=0
+pkgdesc="GStreamer bad plugins"
+url="http://gstreamer.freedesktop.org/"
+license="LGPL GPL"
+depends=""
+makedepends="pkgconfig gst-plugins-base-dev gstreamer-dev xvidcore-dev
+ bzip2-dev neon-dev faac-dev libexif-dev faad2-dev glib-dev liboil-dev
+ alsa-lib-dev libx11-dev sdl-dev"
+
+#'libdca>=0.0.5' 'bzip2' 'libdc1394>=2.1.0' 'exempi>=2.1.0' 'jack-audio-connection-kit>=0.116.2' 'neon>=0.28.4' 'faac>=1.28' 'libexif>=0.6.17' 'musicbrainz>=2.1.5' 'faad2>=2.7' 'libmms>=0.4' 'libcdaudio>=0.99.12' 'libmpcdec>=1.2.6' 'mjpegtools>=1.9.0' 'libdvdnav>=4.1.3' 'libmodplug>=0.8.7' 'jasper>=1.900.1' 'liblrdf>=0.4.0' 'libofa>=0.9.3')
+source="http://gstreamer.freedesktop.org//src/gst-plugins-bad/gst-plugins-bad-$pkgver.tar.bz2"
+
+build ()
+{
+ cd ""$srcdir"/gst-plugins-bad-$pkgver"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-experimental \
+ --with-package-name="GStreamer Bad Plugins (Alpine Linux)" \
+ --with-package-origin="http://www.alpinelinux.org/" \
+ || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="6be38b04fc76cdfef3a3b02b8434efa2 gst-plugins-bad-0.10.14.tar.bz2"
diff --git a/main/gst-plugins-base/APKBUILD b/main/gst-plugins-base/APKBUILD
new file mode 100644
index 0000000000..a2013047df
--- /dev/null
+++ b/main/gst-plugins-base/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gst-plugins-base
+pkgver=0.10.25
+pkgrel=1
+pkgdesc="GStreamer Multimedia Framework Base Plugins"
+url="http://gstreamer.freedesktop.org/"
+license="GPL LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig gstreamer-dev alsa-lib-dev libvorbis-dev liboil-dev
+ perl libogg-dev gtk+-dev libtheora-dev libice-dev libsm-dev libxv-dev
+ util-linux-ng-dev expat-dev"
+# cdparanoia>=10.2 libvisual libtheora"
+source="http://gstreamer.freedesktop.org/src/$pkgname/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="gstreamer-dev"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --disable-experimental \
+ --with-default-audiosink=osssink \
+ --with-package-name="GStreamer Base Plugins (Alpine Linux)" \
+ --with-package-origin="http://www.alpinelinux.org/" \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make -j1 DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="d29669dd79276c5cd94e1613c03cd9ab gst-plugins-base-0.10.25.tar.bz2"
diff --git a/main/gst-plugins-ffmpeg/APKBUILD b/main/gst-plugins-ffmpeg/APKBUILD
new file mode 100644
index 0000000000..1949f16cbc
--- /dev/null
+++ b/main/gst-plugins-ffmpeg/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gst-ffmpeg
+pkgver=0.10.7
+pkgrel=0
+pkgdesc="Gstreamer FFMpeg Plugin"
+url="http://www.gstreamer.net"
+license="GPL"
+makedepends="gstreamer-dev gst-plugins-base-dev liboil-dev ffmpeg-dev"
+source="http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/gst-ffmpeg-$pkgver
+ sed -i \
+ -e 's,ffmpeg/avformat.h,libavformat/avformat.h,' \
+ -e 's,ffmpeg/avcodec.h,libavcodec/avcodec.h,' \
+ -e 's,ffmpeg/swscale.h,libswscale/swscale.h,' \
+ ext/ffmpeg/gst* \
+ ext/libpostproc/gstpostproc.c \
+ || return 1
+
+ export CFLAGS="$CFLAGS -fno-strict-aliasing"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-system-ffmpeg \
+ --localstatedir=/var || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/gstreamer-0.10/*.{l,}a
+}
+
+md5sums="6be89b26592f36ef631b22a68b8e06c4 gst-ffmpeg-0.10.7.tar.bz2"
diff --git a/main/gst-plugins-good/APKBUILD b/main/gst-plugins-good/APKBUILD
new file mode 100644
index 0000000000..16e8fdaaf0
--- /dev/null
+++ b/main/gst-plugins-good/APKBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gst-plugins-good
+pkgver=0.10.17
+pkgrel=0
+pkgdesc="GStreamer Multimedia Framework Good Plugins"
+url="http://gstreamer.freedesktop.org/"
+license="LGPL"
+subpackages="$pkgname-dev"
+depends=
+makedepends="gstreamer-dev glib-dev liboil-dev gst-plugins-base-dev
+ libsoup-dev flac-dev libogg-dev taglib-dev jpeg-dev"
+
+# might consider those:
+#libavc1394
+#hal
+#libiec61883
+#libshout
+#libdv
+#wavpack
+#libv4l
+#libcaca
+
+source="http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.bz2"
+
+depends_dev="gstreamer-dev gst-plugins-base-dev"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-experimental \
+ --with-package-name="GStreamer Good Plugins (Alpine Linux)" \
+ --with-package-origin="http://www.alpinelinux.org/" \
+ || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="833546cd2b8bbf86b8ed083b00897918 gst-plugins-good-0.10.17.tar.bz2"
diff --git a/main/gst-plugins-ugly/APKBUILD b/main/gst-plugins-ugly/APKBUILD
new file mode 100644
index 0000000000..cb49433c05
--- /dev/null
+++ b/main/gst-plugins-ugly/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gst-plugins-ugly
+pkgver=0.10.13
+pkgrel=0
+pkgdesc="GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)"
+url="http://gstreamer.freedesktop.org/"
+license="LGPL"
+depends= #"gstreamer0.10-ugly>=0.10.11 libdvdread>=4.1.3 lame>=3.98.2 libmpeg2>=0.5.1 a52dec>=0.7.4 libid3tag>=0.15.1b libmad>=0.15.1b libsidplay>=1.36.59 libcdio>=0.81"
+makedepends="pkgconfig lame-dev libmpeg2-dev a52dec-dev libid3tag-dev
+ libmad-dev glib-dev liboil-dev gstreamer-dev gst-plugins-base-dev"
+source="http://gstreamer.freedesktop.org//src/gst-plugins-ugly/gst-plugins-ugly-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-experimental \
+ --with-package-name="GStreamer Ugly Plugins (Alpine Linux)" \
+ --with-package-origin="http://www.alpinelinux.org/" || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="1619365247ef9cd7da1cd890285bf87a gst-plugins-ugly-0.10.13.tar.bz2"
diff --git a/main/gstreamer/APKBUILD b/main/gstreamer/APKBUILD
new file mode 100644
index 0000000000..df825c01d8
--- /dev/null
+++ b/main/gstreamer/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gstreamer
+pkgver=0.10.25
+pkgrel=0
+pkgdesc="GStreamer Multimedia Framework"
+url="http://gstreamer.freedesktop.org/"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxml2-dev glib-dev bison flex gettext-dev libiconv-dev"
+source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.bz2"
+
+depends_dev="glib-dev libxml2-dev"
+
+build() {
+ cd "$srcdir"/gstreamer-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-docs-build || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/gstreamer-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ cd "$pkgdir"/usr/bin
+}
+md5sums="88544e034a051baf472983791d233076 gstreamer-0.10.25.tar.bz2"
diff --git a/main/gtk+/APKBUILD b/main/gtk+/APKBUILD
new file mode 100644
index 0000000000..ff5b65b130
--- /dev/null
+++ b/main/gtk+/APKBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gtk+
+pkgver=2.18.6
+pkgrel=0
+pkgdesc="The GTK+ Toolkit (v2)"
+url="http://www.gtk.org/"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+triggers="$pkgname.trigger:/usr/share/icons/*"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="shared-mime-info"
+makedepends="pkgconfig
+ atk-dev
+ cairo-dev
+ cups-dev
+ expat-dev
+ gettext-dev
+ glib-dev
+ gnutls-dev
+ libice-dev
+ libiconv-dev
+ jpeg-dev
+ libx11-dev
+ libxcomposite-dev
+ libxcursor-dev
+ libxdamage-dev
+ libxext-dev
+ libxfixes-dev
+ libxrandr-dev
+ libxi-dev
+ pango-dev
+ tiff-dev
+ zlib-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.bz2"
+
+depends_dev="atk-dev pango-dev cairo-dev glib-dev"
+build() {
+ cd "$srcdir"/gtk+-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-xinput=yes \
+ --without-libjasper \
+ --with-included-loaders=png || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/gtk+-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="3b32073cf1fad755f7c2b2db71aebe90 gtk+-2.18.6.tar.bz2"
diff --git a/main/gtk+/gtk+.post-deinstall b/main/gtk+/gtk+.post-deinstall
new file mode 100644
index 0000000000..e7ee2a1517
--- /dev/null
+++ b/main/gtk+/gtk+.post-deinstall
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+rm -f etc/gtk-2.0/gtk.immodules
+rm -f etc/gtk-2.0/gdk-pixbuf.loaders
+
diff --git a/main/gtk+/gtk+.post-install b/main/gtk+/gtk+.post-install
new file mode 100644
index 0000000000..80444cfb93
--- /dev/null
+++ b/main/gtk+/gtk+.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+usr/bin/gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules
+usr/bin/gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders
+
diff --git a/main/gtk+/gtk+.post-upgrade b/main/gtk+/gtk+.post-upgrade
new file mode 120000
index 0000000000..127667db2d
--- /dev/null
+++ b/main/gtk+/gtk+.post-upgrade
@@ -0,0 +1 @@
+gtk+.post-install \ No newline at end of file
diff --git a/main/gtk+/gtk+.trigger b/main/gtk+/gtk+.trigger
new file mode 100644
index 0000000000..e9ff91c91b
--- /dev/null
+++ b/main/gtk+/gtk+.trigger
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+for i in "$@"; do
+ gtk-update-icon-cache -q -t -f $i
+done
diff --git a/main/gtk-doc/APKBUILD b/main/gtk-doc/APKBUILD
new file mode 100644
index 0000000000..9c86f49ccf
--- /dev/null
+++ b/main/gtk-doc/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gtk-doc
+pkgver=1.13
+pkgrel=0
+pkgdesc="Documentation tool for public library API"
+url="http://www.gtk.org/gtk-doc/"
+license="GPL FDL"
+depends="docbook-xsl gnome-doc-utils perl pkgconfig"
+makedepends="rarian-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="27940d6cd5c9dcda8fc003043d8c299a gtk-doc-1.13.tar.bz2"
diff --git a/main/gtk-vnc/APKBUILD b/main/gtk-vnc/APKBUILD
new file mode 100644
index 0000000000..dd94fd54bc
--- /dev/null
+++ b/main/gtk-vnc/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gtk-vnc
+pkgver=0.3.10
+pkgrel=0
+pkgdesc="A VNC viewer widget for GTK"
+url="http://live.gnome.org/gtk-vnc"
+license="LGPL"
+subpackages="$pkgname-dev gvncviewer"
+makedepends="gnutls-dev gtk+-dev libiconv-dev gettext-dev intltool expat-dev
+ libgcrypt-dev libgpg-error-dev cyrus-sasl-dev"
+depends_dev="gtk+-dev gnutls-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/0.3/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --without-python \
+ --with-examples \
+ --disable-static || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+gvncviewer() {
+ pkgdesc="Demo application for gtk-vnc"
+ mkdir -p "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="9aa9d830b219255c8d6753ef55802932 gtk-vnc-0.3.10.tar.bz2"
diff --git a/main/gtk-xfce-engine/APKBUILD b/main/gtk-xfce-engine/APKBUILD
new file mode 100644
index 0000000000..ddeb911d16
--- /dev/null
+++ b/main/gtk-xfce-engine/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gtk-xfce-engine
+pkgver=2.6.0
+pkgrel=0
+pkgdesc="A port of Xfce engine to GTK+-2.0"
+url="http://www.xfce.org/"
+license="GPL-2"
+depends=
+makedepends="pkgconfig gtk+-dev libiconv-dev gettext-dev expat-dev"
+source="http://www.xfce.org/archive/xfce-4.6.0/src/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="e836705d2933d0a77c6628285e10d982 gtk-xfce-engine-2.6.0.tar.bz2"
diff --git a/main/hicolor-icon-theme/APKBUILD b/main/hicolor-icon-theme/APKBUILD
new file mode 100644
index 0000000000..2b27dab38d
--- /dev/null
+++ b/main/hicolor-icon-theme/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=hicolor-icon-theme
+pkgver=0.10
+pkgrel=0
+pkgdesc="Freedesktop.org Hicolor icon theme"
+url="http://icon-theme.freedesktop.org/wiki/HicolorTheme"
+license="GPL2"
+depends=""
+makedepends=""
+source="http://icon-theme.freedesktop.org/releases/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="3534f7b8e59785c7d5bfa923e85510a7 hicolor-icon-theme-0.10.tar.gz"
diff --git a/main/iceauth/APKBUILD b/main/iceauth/APKBUILD
new file mode 100644
index 0000000000..30da7ad068
--- /dev/null
+++ b/main/iceauth/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=iceauth
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="X.Org ICE authority file utility"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libice-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/iceauth-$pkgver.tar.bz2"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="975ade3f238c1eb10705da0a91e6e8e7 iceauth-1.0.3.tar.bz2"
diff --git a/main/icon-naming-utils/APKBUILD b/main/icon-naming-utils/APKBUILD
new file mode 100644
index 0000000000..b5164dd05a
--- /dev/null
+++ b/main/icon-naming-utils/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=icon-naming-utils
+pkgver=0.8.90
+pkgrel=0
+pkgdesc="Maps the new names of icons for Tango to the legacy names used by the GNOME and KDE desktops."
+url="http://tango.freedesktop.org/"
+license="GPL"
+depends="perl-xml-simple"
+makedepends=""
+source="http://tango.freedesktop.org/releases/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/icon-naming-utils \
+ --localstatedir=/var || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib/pkgconfig || return 1
+ chmod +x "$pkgdir"/usr/lib/icon-naming-utils/icon-name-mapping
+}
+
+md5sums="dd8108b56130b9eedc4042df634efa66 icon-naming-utils-0.8.90.tar.bz2"
diff --git a/main/imlib2/APKBUILD b/main/imlib2/APKBUILD
new file mode 100644
index 0000000000..99e48f2e38
--- /dev/null
+++ b/main/imlib2/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=imlib2
+pkgver=1.4.2
+pkgrel=1
+pkgdesc="Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support"
+url="http://sourceforge.net/projects/enlightenment/"
+license="BSD"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="tiff-dev giflib-dev bzip2-dev freetype-dev libxext-dev
+ libpng-dev libid3tag-dev jpeg-dev libsm-dev zlib-dev"
+source="http://downloads.sourceforge.net/enlightenment/$pkgname-$pkgver.tar.bz2
+ bufferoverflow.patch"
+
+build ()
+{
+ cd $srcdir/$pkgname-$pkgver
+ patch -Np0 -i $srcdir/bufferoverflow.patch || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/imlib2 \
+ --x-libraries=/usr/lib \
+ --disable-mmx \
+ --disable-amd64 \
+ || return 1
+ make || return 1
+ make DESTDIR=$pkgdir install || return 1
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="9f15568e76ebda9092c571e0df261f54 imlib2-1.4.2.tar.bz2
+76def1fe0ac2ac1686ff24d29979606f bufferoverflow.patch"
diff --git a/main/imlib2/bufferoverflow.patch b/main/imlib2/bufferoverflow.patch
new file mode 100644
index 0000000000..397b43fb8c
--- /dev/null
+++ b/main/imlib2/bufferoverflow.patch
@@ -0,0 +1,13 @@
+--- src/modules/loaders/loader_xpm.c
++++ src/modules/loaders/loader_xpm.c.new
+@@ -246,8 +246,8 @@
+ return 0;
+ }
+ ptr = im->data;
+- end = ptr + (sizeof(DATA32) * w * h);
+ pixels = w * h;
++ end = ptr + pixels;
+ }
+ else
+ {
+
diff --git a/main/inputproto/APKBUILD b/main/inputproto/APKBUILD
new file mode 100644
index 0000000000..ef5e4198fb
--- /dev/null
+++ b/main/inputproto/APKBUILD
@@ -0,0 +1,18 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=inputproto
+pkgver=2.0
+pkgrel=0
+pkgdesc="X11 Input extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="0f7acbc14a082f9ae03744396527d23d inputproto-2.0.tar.bz2"
diff --git a/main/intltool/APKBUILD b/main/intltool/APKBUILD
new file mode 100644
index 0000000000..bf231ce614
--- /dev/null
+++ b/main/intltool/APKBUILD
@@ -0,0 +1,18 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=intltool
+pkgver=0.40.6
+pkgrel=2
+pkgdesc="The internationalization tool collection"
+url="http://freedesktop.org/wiki/Software/intltool"
+license="GPL"
+depends="perl perl-xml-parser gettext"
+subpackages="$pkgname-doc"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/0.40/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="69bc0353323112f42ad4f9cf351bc3e5 intltool-0.40.6.tar.bz2"
diff --git a/main/iso-codes/APKBUILD b/main/iso-codes/APKBUILD
new file mode 100644
index 0000000000..34434037b4
--- /dev/null
+++ b/main/iso-codes/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=iso-codes
+pkgver=3.10.1
+pkgrel=0
+pkgdesc="Lists of the country, language, and currency names"
+url="http://pkg-isocodes.alioth.debian.org/"
+license="LGPL"
+depends=""
+makedepends="python gettext"
+source="ftp://pkg-isocodes.alioth.debian.org/pub/pkg-isocodes/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" pkgconfigdir=/usr/lib/pkgconfig install || return 1
+}
+md5sums="1db1466d1ea63fe5fc349b7ba8b189fb iso-codes-3.10.1.tar.bz2"
diff --git a/main/kbproto/APKBUILD b/main/kbproto/APKBUILD
new file mode 100644
index 0000000000..338779988b
--- /dev/null
+++ b/main/kbproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=kbproto
+pkgver=1.0.4
+pkgrel=0
+pkgdesc="X11 XKB extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="7f439166a9b2bf81471a33951883019f kbproto-1.0.4.tar.bz2"
diff --git a/main/libcroco/APKBUILD b/main/libcroco/APKBUILD
new file mode 100644
index 0000000000..47a289667f
--- /dev/null
+++ b/main/libcroco/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libcroco
+pkgver=0.6.2
+pkgrel=0
+pkgdesc="GNOME CSS2 parsing and manipulation toolkit"
+url="http://www.gnome.org"
+license="LGPL"
+subpackages="$pkgname-dev"
+depends=
+makedepends="glib-dev libxml2-dev pkgconfig"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/0.6/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev libxml2-dev pkgconfig"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="1429c597aa4b75fc610ab3a542c99209 libcroco-0.6.2.tar.bz2"
diff --git a/main/libdrm/APKBUILD b/main/libdrm/APKBUILD
new file mode 100644
index 0000000000..86ab0c37c7
--- /dev/null
+++ b/main/libdrm/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libdrm
+pkgver=2.4.17
+pkgrel=0
+pkgdesc="Userspace interface to kernel DRM services"
+url="http://dri.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig libpthread-stubs"
+subpackages="$pkgname-dev"
+source="http://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="667d81f993f7fd8a1b1b1b830a28a748 libdrm-2.4.17.tar.bz2"
diff --git a/main/libfontenc/APKBUILD b/main/libfontenc/APKBUILD
new file mode 100644
index 0000000000..7dac13ea89
--- /dev/null
+++ b/main/libfontenc/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libfontenc
+pkgver=1.0.5
+pkgrel=1
+pkgdesc="X11 font encoding library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig xproto zlib-dev"
+subpackages="$pkgname-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --with-encodingsdir=/usr/share/fonts/encodings
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="4f0d8191819be9f2bdf9dad49a65e43b libfontenc-1.0.5.tar.bz2"
diff --git a/main/libglade/APKBUILD b/main/libglade/APKBUILD
new file mode 100644
index 0000000000..b999bd4ae4
--- /dev/null
+++ b/main/libglade/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libglade
+pkgver=2.6.4
+pkgrel=0
+pkgdesc="Allows you to load glade interface files in a program at runtime"
+url="http://www.gnome.org"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="python pkgconfig gtk+-dev libxml2-dev gettext-dev libiconv-dev
+ expat-dev"
+install="$pkgname.post-install $pkgname.pre-upgrade $pkgname.post-upgrade
+ $pkgname.post-deinstall"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/2.6/$pkgname-$pkgver.tar.bz2
+ $pkgname-2.0.1-nowarning.patch
+ $install
+ "
+
+depends_dev="gtk+-dev libxml2-dev"
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -Np1 -i "$srcdir"/libglade-2.0.1-nowarning.patch || return 1
+ ./configure --sysconfdir=/etc \
+ --prefix=/usr \
+ --localstatedir=/var || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 libglade-convert "$pkgdir"/usr/bin/ || return 1
+}
+md5sums="d1776b40f4e166b5e9c107f1c8fe4139 libglade-2.6.4.tar.bz2
+4f879c0ce550004905aa0fb24f25c353 libglade-2.0.1-nowarning.patch
+9083bddf8edd4a116bec36df3866e9bf libglade.post-install
+964867abf7ceafdce9640b08f34ce090 libglade.pre-upgrade
+9083bddf8edd4a116bec36df3866e9bf libglade.post-upgrade
+964867abf7ceafdce9640b08f34ce090 libglade.post-deinstall"
diff --git a/main/libglade/libglade-2.0.1-nowarning.patch b/main/libglade/libglade-2.0.1-nowarning.patch
new file mode 100644
index 0000000000..fd071215fa
--- /dev/null
+++ b/main/libglade/libglade-2.0.1-nowarning.patch
@@ -0,0 +1,39 @@
+--- libglade-2.0.1/glade/glade-gtk.c.nowarning 2003-08-29 14:50:10.000000000 -0400
++++ libglade-2.0.1/glade/glade-gtk.c 2003-08-29 14:58:41.000000000 -0400
+@@ -639,9 +639,8 @@
+ if (!strcmp (childinfo->properties[j].name, "label")) {
+ label = childinfo->properties[j].value;
+ break;
+- } else {
+- g_warning ("Unknown CList child property: %s", childinfo->properties[j].name);
+ }
++ /* Ignore all other properties */
+ }
+
+ if (label) {
+@@ -683,6 +682,7 @@
+ char *icon = NULL;
+ gboolean use_stock = FALSE, active = FALSE, new_group = FALSE;
+ gboolean use_underline = FALSE;
++ gboolean sensitive = TRUE;
+ GtkWidget *iconw = NULL;
+ int j;
+
+@@ -708,6 +708,8 @@
+ group_name = value;
+ } else if (!strcmp (name, "new_group")) {
+ new_group = BOOL (value);
++ } else if (!strcmp (name, "sensitive")) {
++ sensitive = BOOL (value);
+ } else if (!strcmp (name, "visible")) {
+ /* ignore for now */
+ } else if (!strcmp (name, "tooltip")) {
+@@ -785,6 +787,8 @@
+ gtk_label_set_use_underline (GTK_LABEL (toolbar_child->label),
+ TRUE);
+ }
++
++ gtk_widget_set_sensitive (child, sensitive);
+
+ glade_xml_set_common_params (xml, child, childinfo->child);
+ } else {
diff --git a/main/libglade/libglade.post-deinstall b/main/libglade/libglade.post-deinstall
new file mode 100644
index 0000000000..1b368de845
--- /dev/null
+++ b/main/libglade/libglade.post-deinstall
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+xmlcatalog --noout --del \
+ /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
+
diff --git a/main/libglade/libglade.post-install b/main/libglade/libglade.post-install
new file mode 100644
index 0000000000..2188b75635
--- /dev/null
+++ b/main/libglade/libglade.post-install
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+mkdir -p etc/xml
+
+if [ ! -e etc/xml/catalog ]; then
+ xmlcatalog --noout --create etc/xml/catalog
+fi
+
+xmlcatalog --noout --add "system" \
+ "http://glade.gnome.org/glade-2.0.dtd" \
+ /usr/share/xml/libglade/glade-2.0.dtd etc/xml/catalog
+
diff --git a/main/libglade/libglade.post-upgrade b/main/libglade/libglade.post-upgrade
new file mode 120000
index 0000000000..25d67c626e
--- /dev/null
+++ b/main/libglade/libglade.post-upgrade
@@ -0,0 +1 @@
+libglade.post-install \ No newline at end of file
diff --git a/main/libglade/libglade.pre-upgrade b/main/libglade/libglade.pre-upgrade
new file mode 120000
index 0000000000..06b72fb37b
--- /dev/null
+++ b/main/libglade/libglade.pre-upgrade
@@ -0,0 +1 @@
+libglade.post-deinstall \ No newline at end of file
diff --git a/main/libgsf/APKBUILD b/main/libgsf/APKBUILD
new file mode 100644
index 0000000000..ae307f6704
--- /dev/null
+++ b/main/libgsf/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libgsf
+pkgver=1.14.16
+pkgrel=0
+pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats."
+url="http://www.gnome.org/"
+license="GPL LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="libxml2-dev glib-dev bzip2-dev intltool python zlib-dev"
+source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/1.14/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev libxml2-dev pkgconfig"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ sed -i -e 's/gsf-gnome//' -e 's/thumbnailer//' Makefile.* || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/share/man \
+ --disable-static \
+ --without-gnome-vfs \
+ --without-bonobo || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/share/man/man1/gsf-office-thumbnailer.1
+}
+
+md5sums="8478d83fda0b6e57f36550c11a693ee1 libgsf-1.14.16.tar.bz2"
diff --git a/main/libice/APKBUILD b/main/libice/APKBUILD
new file mode 100644
index 0000000000..4cf8058d97
--- /dev/null
+++ b/main/libice/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libice
+pkgver=1.0.6
+pkgrel=1
+pkgdesc="X11 Inter-Client Exchange library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig xproto xtrans"
+subpackages="$pkgname-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libICE-$pkgver.tar.bz2"
+
+depends_dev="xproto"
+build () {
+ cd "$srcdir"/libICE-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libICE-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="2d39bc924af24325dae589e9a849180c libICE-1.0.6.tar.bz2"
diff --git a/main/libmpeg2/APKBUILD b/main/libmpeg2/APKBUILD
new file mode 100644
index 0000000000..15704d0def
--- /dev/null
+++ b/main/libmpeg2/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libmpeg2
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams."
+url="http://libmpeg2.sourceforge.net/"
+license="GPL2"
+subpackages="$pkgname-dev $pkgname-doc mpeg2dec"
+depends=
+makedepends="libx11-dev libice-dev libsm-dev libxext-dev libxv-dev"
+source="http://$pkgname.sourceforge.net/files/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --enable-shared \
+ --disable-static || return 1
+ make OPT_CFLAGS="${CFLAGS}" \
+ MPEG2DEC_CFLAGS="${CFLAGS}" \
+ LIBMPEG2_CFLAGS="" || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+mpeg2dec() {
+ pkgdesc="a test program for libmpeg2"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/mpeg2dec "$subpkgdir"/usr/bin/
+}
+
+md5sums="0f92c7454e58379b4a5a378485bbd8ef libmpeg2-0.5.1.tar.gz"
diff --git a/main/libnotify/APKBUILD b/main/libnotify/APKBUILD
new file mode 100644
index 0000000000..2765a4dff7
--- /dev/null
+++ b/main/libnotify/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libnotify
+pkgver=0.4.5
+pkgdesc="Desktop notification library"
+url="http://www.galago-project.org/"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig dbus-glib-dev gtk+-dev gettext-dev libiconv-dev
+ expat-dev"
+source="http://www.galago-project.org/files/releases/source/$pkgname/$pkgname-$pkgver.tar.gz"
+
+depends_dev="gtk+-dev glib-dev dbus-dev dbus-glib-dev"
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="472e2c1f808848365572a9b024d9e8f5 libnotify-0.4.5.tar.gz"
diff --git a/main/liboil/APKBUILD b/main/liboil/APKBUILD
new file mode 100644
index 0000000000..d388ca491f
--- /dev/null
+++ b/main/liboil/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=liboil
+pkgver=0.3.16
+pkgrel=0
+pkgdesc="Library of simple functions that are optimized for various CPUs."
+url="http://liboil.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+source="http://$pkgname.freedesktop.org/download/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ unset CFLAGS
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" install || return 1
+ install -m755 -d "$pkgdir"/usr/share/licenses/liboil
+ install -m644 COPYING "$pkgdir"/usr/share/licenses/liboil/ || return 1
+}
+md5sums="febb1d9f9bc4c440fcf622dc90f8b6b7 liboil-0.3.16.tar.gz"
diff --git a/main/libpciaccess/APKBUILD b/main/libpciaccess/APKBUILD
new file mode 100644
index 0000000000..1f5e636521
--- /dev/null
+++ b/main/libpciaccess/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libpciaccess
+pkgver=0.11.0
+pkgrel=0
+pkgdesc="X11 PCI access library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig"
+source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="686320dcec98daad0bdfb8894d4f2a2b libpciaccess-0.11.0.tar.bz2"
diff --git a/main/libpthread-stubs/APKBUILD b/main/libpthread-stubs/APKBUILD
new file mode 100644
index 0000000000..7ca630b435
--- /dev/null
+++ b/main/libpthread-stubs/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libpthread-stubs
+pkgver=0.3
+pkgrel=0
+pkgdesc="Pthread functions stubs for platforms missing them"
+url="http://cgit.freedesktop.org/xcb/pthread-stubs"
+license="X11"
+depends=
+source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ # we actually have pthread_exit, the configure script just
+ # fails to detect it
+ make CFLAGS="$CFLAGS -DHAVE_PTHREAD_EXIT=1"
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make -j1 DESTDIR="$pkgdir" install
+}
+md5sums="e8fa31b42e13f87e8f5a7a2b731db7ee libpthread-stubs-0.3.tar.bz2"
diff --git a/main/librsvg/APKBUILD b/main/librsvg/APKBUILD
new file mode 100644
index 0000000000..ba930bf6db
--- /dev/null
+++ b/main/librsvg/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=librsvg
+pkgver=2.26.0
+pkgrel=0
+pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
+url="http://librsvg.sourceforge.net/"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="gtk+-dev libcroco-dev libgsf-dev bzip2-dev"
+install="librsvg.post-install librsvg.post-upgrade librsvg.post-deinstall"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/2.26/$pkgname-$pkgver.tar.bz2
+ $install"
+
+depends_dev="glib-dev gtk+-dev cairo-dev libcroco-dev libgsf-dev"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/lib/$pkgname \
+ --with-croco \
+ --disable-static \
+ --disable-mozilla-plugin \
+ --with-svgz || return 1
+ make || return 1
+ make DESTDIR=""$pkgdir"" install || return 1
+ rm -rf "$pkgdir"/usr/lib/mozilla
+}
+
+md5sums="65dbd726a514fe8b797d26254b8efc1e librsvg-2.26.0.tar.bz2
+323a187b3a9bc1c506543c03a6f533ce librsvg.post-install
+323a187b3a9bc1c506543c03a6f533ce librsvg.post-upgrade
+323a187b3a9bc1c506543c03a6f533ce librsvg.post-deinstall"
diff --git a/main/librsvg/librsvg.post-deinstall b/main/librsvg/librsvg.post-deinstall
new file mode 120000
index 0000000000..4729c2e260
--- /dev/null
+++ b/main/librsvg/librsvg.post-deinstall
@@ -0,0 +1 @@
+librsvg.post-install \ No newline at end of file
diff --git a/main/librsvg/librsvg.post-install b/main/librsvg/librsvg.post-install
new file mode 100644
index 0000000000..de5ca6c6c0
--- /dev/null
+++ b/main/librsvg/librsvg.post-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+#We need to update the pixbuf loaders to let GTK support SVG images
+gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules
+gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders
+
+exit 0
diff --git a/main/librsvg/librsvg.post-upgrade b/main/librsvg/librsvg.post-upgrade
new file mode 120000
index 0000000000..4729c2e260
--- /dev/null
+++ b/main/librsvg/librsvg.post-upgrade
@@ -0,0 +1 @@
+librsvg.post-install \ No newline at end of file
diff --git a/main/libsexy/APKBUILD b/main/libsexy/APKBUILD
new file mode 100644
index 0000000000..64488a0ad9
--- /dev/null
+++ b/main/libsexy/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libsexy
+pkgver=0.1.11
+pkgrel=0
+pkgdesc="Doing naughty things to good widgets."
+url="http://chipx86.com/wiki/Libsexy"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="gtk+-dev libxml2-dev iso-codes"
+source="http://releases.chipx86.com/$pkgname/$pkgname/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install
+ rm -f "$pkgdir"/usr/lib/libsexy.a
+}
+
+md5sums="33c079a253270ec8bfb9508e4bb30754 libsexy-0.1.11.tar.gz"
diff --git a/main/libsm/APKBUILD b/main/libsm/APKBUILD
new file mode 100644
index 0000000000..9f17e18a8d
--- /dev/null
+++ b/main/libsm/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libsm
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="X11 Session Management library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends="libice libuuid"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="pkgconfig libice-dev e2fsprogs-dev xproto xtrans"
+source="http://xorg.freedesktop.org/releases/individual/lib/libSM-$pkgver.tar.bz2"
+
+depends_dev="libice-dev xproto"
+
+build () {
+ cd "$srcdir"/libSM-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="6889a455496aaaa65b1fa05fc518d179 libSM-1.1.1.tar.bz2"
diff --git a/main/libsoup/APKBUILD b/main/libsoup/APKBUILD
new file mode 100644
index 0000000000..af9462e6b7
--- /dev/null
+++ b/main/libsoup/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libsoup
+pkgver=2.28.2
+pkgrel=0
+pkgdesc="Gnome HTTP Library"
+url="http://www.gnome.org"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig glib-dev gnutls-dev libxml2-dev libiconv-dev gettext-dev
+ libgcrypt-dev libgpg-error-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev libxml2-dev gnutls-dev"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --without-gnome \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="31d7ad416005eed4b78f07ac01b6b9f0 libsoup-2.28.2.tar.bz2"
diff --git a/main/libtheora/APKBUILD b/main/libtheora/APKBUILD
new file mode 100644
index 0000000000..f17b0e8ac6
--- /dev/null
+++ b/main/libtheora/APKBUILD
@@ -0,0 +1,43 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libtheora
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="An open video codec developed by the Xiph.org"
+url="http://www.xiph.org"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-examples"
+depends=
+makedepends="libvorbis-dev libogg-dev sdl-dev autoconf automake libtool"
+source="http://downloads.xiph.org/releases/theora/$pkgname-$pkgver.tar.bz2
+ libtheora-flags.patch"
+
+depends_dev="libogg-dev"
+build() {
+ cd "$srcdir"/libtheora-$pkgver
+ patch -p1 -i ../libtheora-flags.patch || return 1
+ aclocal -I m4 && autoconf && automake && libtoolize || return 1
+
+ ./configure --prefix=/usr \
+ --enable-shared \
+ --disable-static || return 1
+
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libtheora-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 -d ""$pkgdir"/usr/share/licenses/$pkgname"
+ install -m644 LICENSE COPYING "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+examples() {
+ pkgdesc="Example applications for libtheora"
+ cd "$srcdir"/libtheora-$pkgver/examples
+ install -d "$subpkgdir"/usr/bin
+ install -m755 dump_psnr player_example dump_video encoder_example \
+ "$subpkgdir"/usr/bin/
+}
+
+md5sums="292ab65cedd5021d6b7ddd117e07cd8e libtheora-1.1.1.tar.bz2
+7cbab1ce1f52adb98e1c241515a27aca libtheora-flags.patch"
diff --git a/main/libtheora/libtheora-flags.patch b/main/libtheora/libtheora-flags.patch
new file mode 100644
index 0000000000..a47cc57716
--- /dev/null
+++ b/main/libtheora/libtheora-flags.patch
@@ -0,0 +1,14 @@
+diff -ur libtheora-1.0beta2.orig/configure.ac libtheora-1.0beta2/configure.ac
+--- libtheora-1.0beta2.orig/configure.ac 2007-10-13 00:01:38.000000000 +0300
++++ libtheora-1.0beta2/configure.ac 2007-11-25 22:44:49.000000000 +0200
+@@ -102,8 +102,8 @@
+ case $host in
+ *)
+ DEBUG="-g -Wall -Wno-parentheses -DDEBUG -D__NO_MATH_INLINES"
+- CFLAGS="-Wall -Wno-parentheses -O3 -fforce-addr -fomit-frame-pointer -finline-functions -funroll-loops"
+- PROFILE="-Wall -Wno-parentheses -pg -g -O3 -fno-inline-functions -DDEBUG";;
++ CFLAGS="-Wall -Wno-parentheses"
++ PROFILE="-Wall -Wno-parentheses -pg -g -fno-inline-functions -DDEBUG";;
+ esac
+ fi
+ CFLAGS="$CFLAGS $cflags_save"
diff --git a/main/libwnck/APKBUILD b/main/libwnck/APKBUILD
new file mode 100644
index 0000000000..95347a2cb0
--- /dev/null
+++ b/main/libwnck/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libwnck
+pkgver=2.28.0
+pkgrel=0
+pkgdesc="Window Navigator Construction Kit"
+url="http://www.gnome.org/"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig gtk+-dev startup-notification-dev libxres-dev intltool
+ gettext-dev libiconv-dev expat-dev libsm-dev e2fsprogs-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev gtk+-dev libx11-dev pango-dev cairo-dev
+ startup-notification-dev libxres-dev"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="a9311661aa954e7c918439b6dd578792 libwnck-2.28.0.tar.bz2"
diff --git a/main/libx11/APKBUILD b/main/libx11/APKBUILD
new file mode 100644
index 0000000000..93224d6f4c
--- /dev/null
+++ b/main/libx11/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libx11
+pkgver=1.3.2
+pkgrel=0
+pkgdesc="X11 client-side library"
+url="http://xorg.freedesktop.org/"
+license="custom:XFREE86"
+depends=
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="libxcb-dev libxau-dev libxdmcp-dev xproto xextproto
+ xf86bigfontproto xtrans kbproto inputproto util-macros pkgconfig
+ "
+source="http://xorg.freedesktop.org/releases/individual/lib/libX11-$pkgver.tar.bz2
+ "
+
+depends_dev="xproto kbproto libxau-dev libxdmcp-dev libxcb-dev"
+
+build() {
+ cd "$srcdir"/libX11-$pkgver
+ ./configure --prefix=/usr \
+ --with-xcb || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/libX11-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+md5sums="001d780829f936e34851ef7cd37b4dfd libX11-1.3.2.tar.bz2"
diff --git a/main/libxau/APKBUILD b/main/libxau/APKBUILD
new file mode 100644
index 0000000000..c6b7990630
--- /dev/null
+++ b/main/libxau/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxau
+pkgver=1.0.5
+pkgrel=0
+pkgdesc="X11 authorisation library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig xproto"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXau-$pkgver.tar.bz2"
+
+depends_dev="xproto"
+
+build() {
+ cd "$srcdir"/libXau-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname
+ install -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING || return 1
+}
+md5sums="993b3185c629e4b89401fca072dcb663 libXau-1.0.5.tar.bz2"
diff --git a/main/libxcb/APKBUILD b/main/libxcb/APKBUILD
new file mode 100644
index 0000000000..a1b30a3519
--- /dev/null
+++ b/main/libxcb/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxcb
+pkgver=1.5
+pkgrel=0
+pkgdesc="X11 client-side library"
+url="http://xcb.freedesktop.org/"
+license="custom"
+depends="xcb-proto>=1.6"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="libxdmcp-dev libxau-dev libxslt libpthread-stubs pkgconfig python"
+source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2
+ "
+depends_dev="libpthread-stubs libxau-dev libxdmcp-dev"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --enable-xinput || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="d19c0ba6ba42ebccd3d62d8bb147b551 libxcb-1.5.tar.bz2"
diff --git a/main/libxcomposite/APKBUILD b/main/libxcomposite/APKBUILD
new file mode 100644
index 0000000000..f2e48a9116
--- /dev/null
+++ b/main/libxcomposite/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxcomposite
+pkgver=0.4.1
+pkgrel=0
+pkgdesc="X11 Composite extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxfixes-dev libxext-dev compositeproto"
+source="http://xorg.freedesktop.org//releases/individual/lib/libXcomposite-$pkgver.tar.bz2"
+
+depends_dev="xproto compositeproto libxfixes-dev libx11-dev libxext-dev"
+build ()
+{
+ cd "$srcdir"/libXcomposite-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+md5sums="0f1367f57fdf5df17a8dd71d0fa68248 libXcomposite-0.4.1.tar.bz2"
diff --git a/main/libxcursor/APKBUILD b/main/libxcursor/APKBUILD
new file mode 100644
index 0000000000..bc9e33d4c3
--- /dev/null
+++ b/main/libxcursor/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxcursor
+pkgver=1.1.10
+pkgrel=1
+pkgdesc="X cursor management library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxfixes-dev libx11-dev libxrender-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXcursor-$pkgver.tar.bz2"
+
+depends_dev="xproto libx11-dev libxrender-dev libxfixes-dev"
+build() {
+ cd "$srcdir"/libXcursor-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXcursor-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="7dcdad1c10daea872cb3355af414b2ca libXcursor-1.1.10.tar.bz2"
diff --git a/main/libxdamage/APKBUILD b/main/libxdamage/APKBUILD
new file mode 100644
index 0000000000..bf58651c00
--- /dev/null
+++ b/main/libxdamage/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxdamage
+pkgver=1.1.2
+pkgrel=1
+pkgdesc="X11 damaged region extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig libxfixes-dev damageproto xextproto"
+subpackages="$pkgname-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXdamage-$pkgver.tar.bz2"
+
+depends_dev="xproto damageproto libxfixes-dev libx11-dev fixesproto"
+build() {
+ cd "$srcdir"/libXdamage-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXdamage-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="b42780bce703ec202a33e5693991c09d libXdamage-1.1.2.tar.bz2"
diff --git a/main/libxdmcp/APKBUILD b/main/libxdmcp/APKBUILD
new file mode 100644
index 0000000000..f61c9e486b
--- /dev/null
+++ b/main/libxdmcp/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxdmcp
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="X11 Display Manager Control Protocol library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="xproto pkgconfig"
+subpackages="$pkgname-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXdmcp-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/libXdmcp-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" install || return 1
+}
+md5sums="d60941d471800f41a3f19b24bea855a7 libXdmcp-1.0.3.tar.bz2"
diff --git a/main/libxext/APKBUILD b/main/libxext/APKBUILD
new file mode 100644
index 0000000000..dbfb1b26da
--- /dev/null
+++ b/main/libxext/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxext
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="X11 miscellaneous extensions library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig xproto xextproto libx11-dev libxau-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXext-$pkgver.tar.bz2"
+
+depends_dev="xextproto libx11-dev libxau-dev"
+build() {
+ cd "$srcdir"/libXext-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+}
+
+package() {
+ cd "$srcdir"/libXext-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="c417c0e8df39a067f90a2a2e7133637d libXext-1.1.1.tar.bz2"
diff --git a/main/libxfce4menu/APKBUILD b/main/libxfce4menu/APKBUILD
new file mode 100644
index 0000000000..0023f2d931
--- /dev/null
+++ b/main/libxfce4menu/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxfce4menu
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="a freedesktop.org compliant menu implementation for Xfce"
+url="http://www.xfce.org/"
+license="GPL-2"
+depends=
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="libxfce4util-dev intltool pkgconfig gtk+-dev gettext-dev
+ libiconv-dev"
+source="http://mocha.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="5dc9343885c2c6f931318b2a1cdcc9db libxfce4menu-4.6.1.tar.bz2"
diff --git a/main/libxfce4util/APKBUILD b/main/libxfce4util/APKBUILD
new file mode 100644
index 0000000000..7cfbd769d2
--- /dev/null
+++ b/main/libxfce4util/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxfce4util
+pkgver=4.6.1
+pkgrel=1
+pkgdesc="Basic utility non-GUI functions for Xfce"
+url="http://www.xfce.org/"
+license="GPL-2"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig glib-dev gettext-dev libiconv-dev"
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="eac51d58179cbcadc3f802450a8ec9cd libxfce4util-4.6.1.tar.bz2"
diff --git a/main/libxfcegui4/APKBUILD b/main/libxfcegui4/APKBUILD
new file mode 100644
index 0000000000..488a555b6f
--- /dev/null
+++ b/main/libxfcegui4/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxfcegui4
+pkgver=4.6.2
+pkgrel=0
+pkgdesc="Basic GUI functions for Xfce"
+url="http://www.xfce.org/"
+license="GPL2"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig intltool glib-dev gettext-dev libiconv-dev gtk+-dev
+ xfconf-dev libsm-dev libice-dev libglade-dev e2fsprogs-dev
+ libxfce4util-dev expat-dev"
+source="http://archive.xfce.org/src/xfce/${pkgname}/4.6/${pkgname}-${pkgver}.tar.bz2"
+
+depends_dev="gtk+-dev libxfce4util-dev xfconf-dev"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="e520b93351d87194b5fcc1315acd8617 libxfcegui4-4.6.2.tar.bz2"
diff --git a/main/libxfixes/APKBUILD b/main/libxfixes/APKBUILD
new file mode 100644
index 0000000000..87e81e1b07
--- /dev/null
+++ b/main/libxfixes/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxfixes
+pkgver=4.0.4
+pkgrel=0
+pkgdesc="X11 miscellaneous 'fixes' extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig xproto libx11-dev fixesproto xextproto"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXfixes-$pkgver.tar.bz2"
+
+depends_dev="xproto fixesproto libx11-dev"
+build() {
+ cd "$srcdir"/libXfixes-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --build=${CHOST} --host=${CHOST}
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="7f2c40852eb337b237ad944ca5c30d49 libXfixes-4.0.4.tar.bz2"
diff --git a/main/libxfont/APKBUILD b/main/libxfont/APKBUILD
new file mode 100644
index 0000000000..f8a2bb2509
--- /dev/null
+++ b/main/libxfont/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxfont
+pkgver=1.4.1
+pkgrel=0
+pkgdesc="X11 font rasterisation library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="libfontenc freetype zlib"
+makedepends="pkgconfig libfontenc-dev freetype-dev fontsproto xproto xtrans
+ zlib-dev"
+source="http://xorg.freedesktop.org/archive/individual/lib/libXfont-$pkgver.tar.bz2"
+
+depends_dev="xproto fontsproto libfontenc-dev freetype-dev"
+
+build() {
+ cd "$srcdir"/libXfont-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="4f2bed2a2be82e90a51a24bb3a22cdf0 libXfont-1.4.1.tar.bz2"
diff --git a/main/libxft/APKBUILD b/main/libxft/APKBUILD
new file mode 100644
index 0000000000..43b5a3c077
--- /dev/null
+++ b/main/libxft/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxft
+pkgver=2.1.14
+pkgrel=1
+pkgdesc="FreeType-based font drawing library for X"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig fontconfig-dev libxrender-dev freetype-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXft-$pkgver.tar.bz2"
+depends_dev="xproto libxrender-dev fontconfig-dev freetype-dev"
+
+build () {
+ cd "$srcdir"/libXft-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXft-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="254e62a233491e0e1251636536163e20 libXft-2.1.14.tar.bz2"
diff --git a/main/libxi/APKBUILD b/main/libxi/APKBUILD
new file mode 100644
index 0000000000..21fd77cec0
--- /dev/null
+++ b/main/libxi/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxi
+pkgver=1.3
+pkgrel=1
+pkgdesc="X11 Input extension library"
+url="http://xorg.freedesktop.org"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="
+ inputproto
+ libx11-dev
+ libxext-dev
+ pkgconfig
+ xextproto
+ xproto
+ "
+source="http://xorg.freedesktop.org/releases/individual/lib/libXi-$pkgver.tar.bz2"
+
+depends_dev="inputproto libx11-dev libxext-dev"
+
+build ()
+{
+ cd "$srcdir"/libXi-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXi-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="8df4ece9bd1efb02c28acb2b6f485e09 libXi-1.3.tar.bz2"
diff --git a/main/libxinerama/APKBUILD b/main/libxinerama/APKBUILD
new file mode 100644
index 0000000000..589994d1bf
--- /dev/null
+++ b/main/libxinerama/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxinerama
+pkgver=1.1
+pkgrel=1
+pkgdesc="X11 Xinerama extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxext-dev libx11-dev xineramaproto"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXinerama-$pkgver.tar.bz2"
+depends_dev="xineramaproto libx11-dev libxext-dev"
+
+build() {
+ cd "$srcdir"/libXinerama-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXinerama-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="a2ac01fc0426cdbb713c5d59cf9955ed libXinerama-1.1.tar.bz2"
diff --git a/main/libxkbfile/APKBUILD b/main/libxkbfile/APKBUILD
new file mode 100644
index 0000000000..1298aed047
--- /dev/null
+++ b/main/libxkbfile/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxkbfile
+pkgver=1.0.6
+pkgrel=1
+pkgdesc="X11 keyboard file manipulation library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig libx11-dev"
+subpackages="$pkgname-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="libx11-dev kbproto"
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 "$srcdir"/$pkgname-$pkgver/COPYING \
+ "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="b01156e263eca8177e6b7f10441951c4 libxkbfile-1.0.6.tar.bz2"
diff --git a/main/libxkbui/APKBUILD b/main/libxkbui/APKBUILD
new file mode 100644
index 0000000000..e585174abb
--- /dev/null
+++ b/main/libxkbui/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxkbui
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="X11 keyboard UI presentation library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev"
+depends=
+makedepends="pkgconfig libxt-dev libx11-dev libsm-dev libice-dev libxkbfile-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="libx11-dev xproto libxt-dev"
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="1143e456f7429e18e88f2eadb2f2b6b1 libxkbui-1.0.2.tar.bz2"
diff --git a/main/libxklavier/APKBUILD b/main/libxklavier/APKBUILD
new file mode 100644
index 0000000000..522a032a7a
--- /dev/null
+++ b/main/libxklavier/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxklavier
+pkgver=4.0
+pkgrel=0
+pkgdesc="High-level API for X Keyboard Extension"
+url="http://gswitchit.sourceforge.net"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="xkeyboard-config iso-codes"
+makedepends="pkgconfig libxkbfile-dev libxml2-dev glib-dev libxi-dev iso-codes
+ gettext-dev libiconv-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="libxml2-dev glib-dev gettext-dev"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-xkb-base=/usr/share/X11/xkb \
+ --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="1b714ba04835fb49511f9e1444a5ea4c libxklavier-4.0.tar.bz2"
diff --git a/main/libxmu/APKBUILD b/main/libxmu/APKBUILD
new file mode 100644
index 0000000000..13343d781f
--- /dev/null
+++ b/main/libxmu/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxmu
+pkgver=1.0.5
+pkgrel=0
+pkgdesc="X11 miscellaneous micro-utility library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxext-dev libxt-dev libx11-dev libsm-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXmu-$pkgver.tar.bz2"
+depends_dev="xproto libx11-dev libxt-dev libxext-dev"
+
+build ()
+{
+ cd "$srcdir"/libXmu-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 $srcdir/libXmu-$pkgver/COPYING \
+ $pkgdir/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="fc4d66be7a1a1eb474954728415e46d6 libXmu-1.0.5.tar.bz2"
diff --git a/main/libxpm/APKBUILD b/main/libxpm/APKBUILD
new file mode 100644
index 0000000000..d1be1b7372
--- /dev/null
+++ b/main/libxpm/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxpm
+pkgver=3.5.8
+pkgrel=1
+pkgdesc="X11 pixmap library"
+url="http://xorg.freedesktop.org/"
+license="custom:BELL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxt-dev libxext-dev libx11-dev util-linux-ng-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXpm-$pkgver.tar.bz2"
+
+depends_dev="libx11-dev"
+build() {
+ cd "$srcdir"/libXpm-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXpm-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="38e58e72d476a74298a59052fde185a3 libXpm-3.5.8.tar.bz2"
diff --git a/main/libxrandr/APKBUILD b/main/libxrandr/APKBUILD
new file mode 100644
index 0000000000..e261af4f49
--- /dev/null
+++ b/main/libxrandr/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxrandr
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="X11 RandR extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxext-dev libxrender-dev randrproto libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXrandr-$pkgver.tar.bz2"
+
+depends_dev="xproto randrproto libx11-dev libxext-dev libxrender-dev"
+
+build() {
+ cd "$srcdir"/libXrandr-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXrandr-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="68eb59c3b7524db6ffd78746ee893d1d libXrandr-1.3.0.tar.bz2"
diff --git a/main/libxrender/APKBUILD b/main/libxrender/APKBUILD
new file mode 100644
index 0000000000..dc11755330
--- /dev/null
+++ b/main/libxrender/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxrender
+pkgver=0.9.5
+pkgrel=1
+pkgdesc="X Rendering Extension client library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev"
+depends=
+makedepends="pkgconfig libx11-dev renderproto"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXrender-$pkgver.tar.bz2"
+
+depends_dev="xproto renderproto libx11-dev"
+build() {
+ cd "$srcdir"/libXrender-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXrender-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="276dd9e85daf0680616cd9f132b354c9 libXrender-0.9.5.tar.bz2"
diff --git a/main/libxres/APKBUILD b/main/libxres/APKBUILD
new file mode 100644
index 0000000000..f446812fd0
--- /dev/null
+++ b/main/libxres/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxres
+pkgver=1.0.4
+pkgrel=0
+pkgdesc="X11 Resource extension library"
+url="http://xorg.freedesktop.org"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="pkgconfig libxext-dev resourceproto"
+depends=
+source="http://xorg.freedesktop.org/releases/individual/lib/libXres-$pkgver.tar.bz2"
+
+depends_dev="xproto libx11-dev libxext-dev"
+build ()
+{
+ cd "$srcdir"/libXres-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+md5sums="4daf91f93d924e693f6f6ed276791be2 libXres-1.0.4.tar.bz2"
diff --git a/main/libxt/APKBUILD b/main/libxt/APKBUILD
new file mode 100644
index 0000000000..aff62dcba7
--- /dev/null
+++ b/main/libxt/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxt
+pkgver=1.0.7
+pkgrel=0
+pkgdesc="X11 toolkit intrinsics library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libsm-dev libice-dev libx11-dev e2fsprogs-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXt-$pkgver.tar.bz2"
+
+depends_dev="xproto libx11-dev libsm-dev"
+
+build () {
+ cd "$srcdir"/libXt-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-install-makestrs
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" install || return 1
+}
+md5sums="96f3c93434a93186d178b60d4a262496 libXt-1.0.7.tar.bz2"
diff --git a/main/libxtst/APKBUILD b/main/libxtst/APKBUILD
new file mode 100644
index 0000000000..c1e9c4b60a
--- /dev/null
+++ b/main/libxtst/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxtst
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="X11 Testing -- Resource extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxext-dev libxi-dev recordproto inputproto"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXtst-$pkgver.tar.bz2"
+depends_dev="recordproto libx11-dev libxext-dev inputproto libxi-dev"
+
+build ()
+{
+ cd "$srcdir"/libXtst-$pkgver
+ ./configure --prefix=/usr \
+ --build=${CHOST} --host=${CHOST}
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+md5sums="dd6f3e20b87310187121539f9605d977 libXtst-1.1.0.tar.bz2"
diff --git a/main/libxv/APKBUILD b/main/libxv/APKBUILD
new file mode 100644
index 0000000000..ca40f7fd16
--- /dev/null
+++ b/main/libxv/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxv
+pkgver=1.0.5
+pkgrel=1
+pkgdesc="X11 Video extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxext-dev libx11-dev videoproto"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXv-$pkgver.tar.bz2"
+
+depends_dev="xproto videoproto libx11-dev libxext-dev"
+
+build() {
+ cd "$srcdir"/libXv-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXv-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="1d97798b1d8bbf8d9085e1b223a0738f libXv-1.0.5.tar.bz2"
diff --git a/main/libxvmc/APKBUILD b/main/libxvmc/APKBUILD
new file mode 100644
index 0000000000..3233ba405e
--- /dev/null
+++ b/main/libxvmc/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxvmc
+pkgver=1.0.5
+pkgrel=1
+pkgdesc="X11 Video Motion Compensation extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev"
+depends=
+makedepends="pkgconfig libxv-dev libxext-dev libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXvMC-$pkgver.tar.bz2"
+
+depends_dev="xproto videoproto libxv-dev libx11-dev libxext-dev"
+
+build() {
+ cd "$srcdir"/libXvMC-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXvMC-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="16c3a11add14979beb7510e44623cac6 libXvMC-1.0.5.tar.bz2"
diff --git a/main/libxxf86dga/APKBUILD b/main/libxxf86dga/APKBUILD
new file mode 100644
index 0000000000..5ac4686604
--- /dev/null
+++ b/main/libxxf86dga/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxxf86dga
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="X11 Direct Graphics Access extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xf86dgaproto libxext-dev libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXxf86dga-$pkgver.tar.bz2"
+
+depends_dev="xf86dgaproto libxext-dev libx11-dev"
+build() {
+ cd "$srcdir"/libXxf86dga-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXxf86dga-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="368837d3d7a4d3b4f70be48383e3544e libXxf86dga-1.1.1.tar.bz2"
diff --git a/main/libxxf86misc/APKBUILD b/main/libxxf86misc/APKBUILD
new file mode 100644
index 0000000000..aa644d1805
--- /dev/null
+++ b/main/libxxf86misc/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxxf86misc
+pkgver=1.0.2
+pkgrel=1
+pkgdesc="X11 XFree86 miscellaneous extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxext-dev libx11-dev xf86miscproto"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXxf86misc-$pkgver.tar.bz2"
+depends_dev="xf86miscproto libx11-dev libxext-dev"
+
+build() {
+ cd "$srcdir"/libXxf86misc-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXxf86misc-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="51fed53e8de067d4b8666f75a0212400 libXxf86misc-1.0.2.tar.bz2"
diff --git a/main/libxxf86vm/APKBUILD b/main/libxxf86vm/APKBUILD
new file mode 100644
index 0000000000..1a7ebc4fda
--- /dev/null
+++ b/main/libxxf86vm/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libxxf86vm
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="X11 XFree86 video mode extension library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xproto libx11-dev xf86vidmodeproto xextproto
+ libxext-dev"
+source="http://xorg.freedesktop.org/releases/individual/lib/libXxf86vm-$pkgver.tar.bz2"
+
+depends_dev="xf86vidmodeproto libx11-dev libxext-dev"
+
+build() {
+ cd "$srcdir"/libXxf86vm-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/libXxf86vm-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="b431ad7084e1055fef99a9115237edd8 libXxf86vm-1.1.0.tar.bz2"
diff --git a/main/mesa/APKBUILD b/main/mesa/APKBUILD
new file mode 100644
index 0000000000..19c4d4c7a9
--- /dev/null
+++ b/main/mesa/APKBUILD
@@ -0,0 +1,92 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mesa
+pkgver=7.7
+pkgrel=0
+pkgdesc="Mesa DRI OpenGL library"
+url="http://www.mesa3d.org"
+license="LGPL"
+depends=
+subpackages="$pkgname-dev
+ $pkgname-dri-ati:ati $pkgname-dri-ffb:ffb $pkgname-dri-intel:intel
+ $pkgname-dri-mach64:mach64 $pkgname-dri-mga:mga $pkgname-dri-r128:r128
+ $pkgname-dri-savage:savage $pkgname-dri-sis:sis
+ $pkgname-dri-tdfx:tdfx $pkgname-dri-unichrome:unichrome
+ "
+
+makedepends="pkgconfig libdrm-dev libxxf86vm-dev libxdamage-dev expat-dev
+ dri2proto xextproto libx11-dev glproto python"
+source="ftp://ftp.freedesktop.org/pub/mesa/$pkgver/MesaLib-$pkgver.tar.bz2
+ mesa-7.7-link-shared.patch
+ intel-revert-vbl.patch
+ mesa-7.4-parallel.patch
+ mesa-7.6.1-ldflags.patch
+ mesa-7.6.1-uclibc.patch"
+
+depends_dev="libdrm-dev dri2proto libx11-dev libxext-dev libxxf86vm-dev
+ libxdamage-dev libxfixes-dev libxcb-dev"
+
+_dri_driverdir=/usr/lib/xorg/modules/dri
+
+prepare() {
+ cd "$srcdir"/Mesa-$pkgver
+ for i in ../*.patch; do
+ msg "Applying $i..."
+ patch -p1 -i $i || return 1
+ done
+}
+
+build() {
+ cd "$srcdir"/Mesa-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr \
+ --with-dri-driverdir=$_dri_driverdir \
+ --disable-asm \
+ --disable-glx-tls \
+ --with-driver=dri \
+ --with-state-trackers=dri,egl \
+ --enable-xcb \
+ --disable-glut \
+ --disable-glw || return 1
+
+ make || return 1
+ # check so we dont have any bind NOW
+ scanelf -Rb . | grep NOW && return 1
+ return 0
+}
+
+package() {
+ cd "$srcdir"/Mesa-$pkgver
+ make -j1 DESTDIR="$pkgdir" install || return 1
+}
+
+
+_mv_dri() {
+ pkgdesc="Mesa DRI driver for $@"
+ install -d "$subpkgdir"/$_dri_driverdir
+
+ while [ $# -gt 0 ]; do
+ mv "$pkgdir"/$_dri_driverdir/${1}.so \
+ "$subpkgdir"/$_dri_driverdir/ || return 1
+ shift
+ done
+}
+
+ati() { _mv_dri radeon_dri r200_dri r300_dri r600_dri; }
+ffb() { _mv_dri ffb_dri; }
+intel() { _mv_dri i810_dri i915_dri i965_dri; }
+mach64() { _mv_dri mach64_dri; }
+mga() { _mv_dri mga_dri; }
+r128() { _mv_dri r128_dri; }
+s3v() { _mv_dri s3v_dri; }
+savage() { _mv_dri savage_dri; }
+sis() { _mv_dri sis_dri; }
+tdfx() { _mv_dri tdfx_dri; }
+trident() { _mv_dri trident_dri; }
+unichrome() { _mv_dri unichrome_dri; }
+
+md5sums="e3fa64a1508bc23dd9de9dd2cea7cfb1 MesaLib-7.7.tar.bz2
+a966f459b6430dbe87a57c5f28f19816 mesa-7.7-link-shared.patch
+a111f4dc82e894f8801bc3fa129af7af intel-revert-vbl.patch
+75e1bb69f384e9d60544fa03c15cc0ec mesa-7.4-parallel.patch
+eb6bb53bb1643782aa572edc40d28629 mesa-7.6.1-ldflags.patch
+8d98e15310e0f2e1520beb9e6cb6ab41 mesa-7.6.1-uclibc.patch"
diff --git a/main/mesa/intel-revert-vbl.patch b/main/mesa/intel-revert-vbl.patch
new file mode 100644
index 0000000000..0394414736
--- /dev/null
+++ b/main/mesa/intel-revert-vbl.patch
@@ -0,0 +1,21 @@
+commit 532d2051245a1d8afe7ca236f1d966d555bb121a
+Author: Dave Airlie <airlied@linux.ie>
+Date: Fri Sep 12 17:21:25 2008 +1000
+
+ Revert "intel: sync to vblank by default"
+
+ This reverts commit e9bf3e4cc9a7e4bcd4c45bd707541d26ecdf0409.
+
+diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
+index c193830..f02192d 100644
+--- a/src/mesa/drivers/dri/intel/intel_screen.c
++++ b/src/mesa/drivers/dri/intel/intel_screen.c
+@@ -55,7 +55,7 @@ PUBLIC const char __driConfigOptions[] =
+ DRI_CONF_BEGIN
+ DRI_CONF_SECTION_PERFORMANCE
+ DRI_CONF_FTHROTTLE_MODE(DRI_CONF_FTHROTTLE_IRQS)
+- DRI_CONF_VBLANK_MODE(DRI_CONF_VBLANK_ALWAYS_SYNC)
++ DRI_CONF_VBLANK_MODE(DRI_CONF_VBLANK_DEF_INTERVAL_0)
+ /* Options correspond to DRI_CONF_BO_REUSE_DISABLED,
+ * DRI_CONF_BO_REUSE_ALL
+ */
diff --git a/main/mesa/mesa-7.4-parallel.patch b/main/mesa/mesa-7.4-parallel.patch
new file mode 100644
index 0000000000..b4e37049d7
--- /dev/null
+++ b/main/mesa/mesa-7.4-parallel.patch
@@ -0,0 +1,12 @@
+diff -ru Mesa-7.4.orig/src/mesa/drivers/dri/Makefile Mesa-7.4/src/mesa/drivers/dri/Makefile
+--- Mesa-7.4.orig/src/mesa/drivers/dri/Makefile 2009-04-11 18:08:41.000000000 +0000
++++ Mesa-7.4/src/mesa/drivers/dri/Makefile 2009-04-11 18:10:09.000000000 +0000
+@@ -18,7 +18,7 @@
+ $(TOP)/$(LIB_DIR)/libdricore.so: $(TOP)/$(LIB_DIR) libdricore.so
+ $(INSTALL) libdricore.so $(TOP)/$(LIB_DIR)
+
+-subdirs:
++subdirs: $(TOP)/$(LIB_DIR)/libdricore.so
+ @for dir in $(DRI_DIRS) ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir && $(MAKE)) || exit 1 ; \
diff --git a/main/mesa/mesa-7.6.1-ldflags.patch b/main/mesa/mesa-7.6.1-ldflags.patch
new file mode 100644
index 0000000000..56914b711f
--- /dev/null
+++ b/main/mesa/mesa-7.6.1-ldflags.patch
@@ -0,0 +1,20 @@
+diff --git a/src/gallium/winsys/drm/Makefile.template b/src/gallium/winsys/drm/Makefile.template
+index 9635c3c..88e02c0 100644
+--- a/src/gallium/winsys/drm/Makefile.template
++++ b/src/gallium/winsys/drm/Makefile.template
+@@ -83,6 +83,7 @@ default: depend symlinks $(TOP)/$(LIB_DIR)/gallium/$(LIBNAME)
+
+ $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) $(WINOBJ) Makefile $(TOP)/src/mesa/drivers/dri/Makefile.template
+ $(MKLIB) -noprefix -o $@ \
++ -ldflags "$(LDFLAGS)" \
+ $(OBJECTS) $(PIPE_DRIVERS) \
+ -Wl,--start-group $(MESA_MODULES) -Wl,--end-group \
+ $(WINOBJ) $(DRI_LIB_DEPS) $(DRIVER_EXTRAS)
+@@ -90,6 +91,7 @@ $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(PIPE_DRIVERS) $(WINOBJ) Makefile $(TOP)
+ $(LIBNAME_EGL): $(WINSYS_OBJECTS) $(LIBS)
+ $(MKLIB) -o $(LIBNAME_EGL) \
+ -linker "$(CC)" \
++ -ldflags "$(LDFLAGS)" \
+ -noprefix \
+ $(OBJECTS) $(MKLIB_OPTIONS) $(WINSYS_OBJECTS) $(PIPE_DRIVERS) $(WINOBJ) $(DRI_LIB_DEPS) \
+ --whole-archive $(LIBS) $(GALLIUM_AUXILIARIES) --no-whole-archive $(DRIVER_EXTRAS)
diff --git a/main/mesa/mesa-7.6.1-uclibc.patch b/main/mesa/mesa-7.6.1-uclibc.patch
new file mode 100644
index 0000000000..4a4354d89d
--- /dev/null
+++ b/main/mesa/mesa-7.6.1-uclibc.patch
@@ -0,0 +1,13 @@
+diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c
+index 46ffb92..6192fe6 100644
+--- a/src/mesa/main/imports.c
++++ b/src/mesa/main/imports.c
+@@ -915,7 +915,7 @@ _mesa_atoi(const char *s)
+ double
+ _mesa_strtod( const char *s, char **end )
+ {
+-#ifdef _GNU_SOURCE
++#if defined(_GNU_SOURCE) && ! defined(__UCLIBC__)
+ static locale_t loc = NULL;
+ if (!loc) {
+ loc = newlocale(LC_CTYPE_MASK, "C", NULL);
diff --git a/main/mesa/mesa-7.7-link-shared.patch b/main/mesa/mesa-7.7-link-shared.patch
new file mode 100644
index 0000000000..8c6b562d75
--- /dev/null
+++ b/main/mesa/mesa-7.7-link-shared.patch
@@ -0,0 +1,101 @@
+diff -up mesa-20091221/src/mesa/drivers/dri/Makefile.da mesa-20091221/src/mesa/drivers/dri/Makefile
+--- mesa-20091221/src/mesa/drivers/dri/Makefile.da 2009-12-21 08:09:11.000000000 +1000
++++ mesa-20091221/src/mesa/drivers/dri/Makefile 2009-12-21 08:43:03.000000000 +1000
+@@ -6,12 +6,17 @@ include $(TOP)/configs/current
+
+
+
+-default: $(TOP)/$(LIB_DIR) subdirs dri.pc
++default: $(TOP)/$(LIB_DIR) $(TOP)/$(LIB_DIR)/libdricore.so subdirs dri.pc
+
+
+ $(TOP)/$(LIB_DIR):
+ -mkdir $(TOP)/$(LIB_DIR)
+
++libdricore.so:
++ gcc -shared -o libdricore.so -Wl,--whole-archive ../../libmesa.a -Wl,--no-whole-archive $(LDFLAGS) -lm -lpthread -lc
++
++$(TOP)/$(LIB_DIR)/libdricore.so: $(TOP)/$(LIB_DIR) libdricore.so
++ $(INSTALL) libdricore.so $(TOP)/$(LIB_DIR)
+
+ subdirs:
+ @for dir in $(DRI_DIRS) ; do \
+@@ -32,12 +37,14 @@ dri.pc: dri.pc.in
+ $(pcedit) $< > $@
+
+
+-install: dri.pc
++install: dri.pc $(TOP)/$(LIB_DIR)/libdricore.so
+ @for dir in $(DRI_DIRS) ; do \
+ if [ -d $$dir ] ; then \
+ (cd $$dir && $(MAKE) install) || exit 1 ; \
+ fi \
+ done
++ $(INSTALL) -d $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
++ $(INSTALL) -m 755 $(TOP)/$(LIB_DIR)/libdricore.so $(DESTDIR)$(DRI_DRIVER_INSTALL_DIR)
+ $(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
+ $(INSTALL) -m 0644 $(TOP)/include/GL/internal/dri_interface.h \
+ $(DESTDIR)$(INSTALL_INC_DIR)/GL/internal
+@@ -51,5 +58,6 @@ clean:
+ (cd $$dir && $(MAKE) clean) ; \
+ fi \
+ done
++ -rm -f libdricore.so $(TOP)/$(LIB_DIR)/libdricore.so
+ -rm -f common/*.o
+ -rm -f *.pc
+diff -up mesa-20091221/src/mesa/drivers/dri/Makefile.template.da mesa-20091221/src/mesa/drivers/dri/Makefile.template
+--- mesa-20091221/src/mesa/drivers/dri/Makefile.template.da 2009-12-21 08:09:11.000000000 +1000
++++ mesa-20091221/src/mesa/drivers/dri/Makefile.template 2009-12-21 08:43:40.000000000 +1000
+@@ -1,6 +1,6 @@
+ # -*-makefile-*-
+
+-MESA_MODULES = $(TOP)/src/mesa/libmesa.a
++MESA_MODULES = $(TOP)/$(LIB_DIR)/libdricore.so
+
+ COMMON_GALLIUM_SOURCES = \
+ ../common/utils.c \
+@@ -70,7 +70,8 @@ lib: symlinks subdirs depend
+ $(LIBNAME): $(OBJECTS) $(MESA_MODULES) $(EXTRA_MODULES) $(WINOBJ) Makefile \
+ $(TOP)/src/mesa/drivers/dri/Makefile.template
+ $(MKLIB) -o $@ -noprefix -linker '$(CC)' -ldflags '$(LDFLAGS)' \
+- $(OBJECTS) $(MESA_MODULES) $(EXTRA_MODULES) $(WINOBJ) \
++ -L$(TOP)/$(LIB_DIR) -Wl,-R$(DRI_DRIVER_INSTALL_DIR) -ldricore \
++ $(OBJECTS) $(EXTRA_MODULES) $(WINOBJ) \
+ $(DRI_LIB_DEPS)
+
+
+diff -up mesa-20091221/src/mesa/x86/read_rgba_span_x86.S.da mesa-20091221/src/mesa/x86/read_rgba_span_x86.S
+--- mesa-20091221/src/mesa/x86/read_rgba_span_x86.S.da 2009-12-21 08:09:11.000000000 +1000
++++ mesa-20091221/src/mesa/x86/read_rgba_span_x86.S 2009-12-21 08:43:03.000000000 +1000
+@@ -77,7 +77,6 @@
+ */
+
+ .globl _generic_read_RGBA_span_BGRA8888_REV_MMX
+-.hidden _generic_read_RGBA_span_BGRA8888_REV_MMX
+ .type _generic_read_RGBA_span_BGRA8888_REV_MMX, @function
+ _generic_read_RGBA_span_BGRA8888_REV_MMX:
+ pushl %ebx
+@@ -172,7 +171,6 @@ _generic_read_RGBA_span_BGRA8888_REV_MMX
+ */
+
+ .globl _generic_read_RGBA_span_BGRA8888_REV_SSE
+-.hidden _generic_read_RGBA_span_BGRA8888_REV_SSE
+ .type _generic_read_RGBA_span_BGRA8888_REV_SSE, @function
+ _generic_read_RGBA_span_BGRA8888_REV_SSE:
+ pushl %esi
+@@ -335,7 +333,6 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE
+
+ .text
+ .globl _generic_read_RGBA_span_BGRA8888_REV_SSE2
+-.hidden _generic_read_RGBA_span_BGRA8888_REV_SSE2
+ .type _generic_read_RGBA_span_BGRA8888_REV_SSE2, @function
+ _generic_read_RGBA_span_BGRA8888_REV_SSE2:
+ pushl %esi
+@@ -494,7 +491,6 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE
+
+ .text
+ .globl _generic_read_RGBA_span_RGB565_MMX
+- .hidden _generic_read_RGBA_span_RGB565_MMX
+ .type _generic_read_RGBA_span_RGB565_MMX, @function
+
+ _generic_read_RGBA_span_RGB565_MMX:
diff --git a/main/midori/APKBUILD b/main/midori/APKBUILD
new file mode 100644
index 0000000000..e73bfe7f0d
--- /dev/null
+++ b/main/midori/APKBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=midori
+pkgver=0.2.2
+pkgrel=0
+pkgdesc="A lightweight web browser based on Gtk WebKit"
+url="http://www.twotoasts.de/index.php?/pages/midori_summary.html"
+license="GPL"
+depends="
+ desktop-file-utils
+ hicolor-icon-theme
+ "
+makedepends="
+ git
+ intltool
+ pkgconfig
+ python
+ gettext-dev
+ libidn-dev
+ libnotify-dev
+ libxml2-dev
+ webkit-dev
+ sqlite-dev
+ paxctl
+ "
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+source="http://archive.xfce.org/src/apps/midori/${pkgver%.*}/midori-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --jobs=${MAKEFLAGS/-j/} \
+ --enable-libidn \
+ --enable-sqlite \
+ --enable-addons \
+ --disable-hildon \
+ --disable-unique \
+ --enable-nls \
+ || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ # PAX does not like the JIT
+ paxctl -c -m -p "$pkgdir"/usr/bin/midori
+}
+md5sums="14f81a7a10f80a173da1b5e88713400b midori-0.2.2.tar.bz2"
diff --git a/main/midori/midori.post-deinstall b/main/midori/midori.post-deinstall
new file mode 100644
index 0000000000..00ebf0b316
--- /dev/null
+++ b/main/midori/midori.post-deinstall
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+update-desktop-database -q
+gtk-update-icon-cache -f -q -t /usr/share/icons/hicolor
+
diff --git a/main/midori/midori.post-install b/main/midori/midori.post-install
new file mode 100644
index 0000000000..9f24aeca93
--- /dev/null
+++ b/main/midori/midori.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -f -q -t /usr/share/icons/hicolor
+update-desktop-database -q
diff --git a/main/midori/midori.post-upgrade b/main/midori/midori.post-upgrade
new file mode 120000
index 0000000000..41bc70a939
--- /dev/null
+++ b/main/midori/midori.post-upgrade
@@ -0,0 +1 @@
+midori.post-install \ No newline at end of file
diff --git a/main/mkfontdir/APKBUILD b/main/mkfontdir/APKBUILD
new file mode 100644
index 0000000000..5858f6a925
--- /dev/null
+++ b/main/mkfontdir/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mkfontdir
+pkgver=1.0.5
+pkgrel=0
+pkgdesc="create an index of X font files in a directory"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends="mkfontscale"
+makedepends="pkgconfig"
+install=
+triggers="$pkgname.trigger:/usr/share/fonts/*"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="9365ac66d19186eaf030482d312fca06 mkfontdir-1.0.5.tar.bz2"
diff --git a/main/mkfontdir/mkfontdir.trigger b/main/mkfontdir/mkfontdir.trigger
new file mode 100644
index 0000000000..4fce36a118
--- /dev/null
+++ b/main/mkfontdir/mkfontdir.trigger
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for i in "$@"; do
+ mkfontdir "$i"
+done
+
diff --git a/main/mkfontscale/APKBUILD b/main/mkfontscale/APKBUILD
new file mode 100644
index 0000000000..283a98567f
--- /dev/null
+++ b/main/mkfontscale/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mkfontscale
+pkgver=1.0.7
+pkgrel=0
+pkgdesc="X.org font scale"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libfontenc-dev freetype-dev xproto zlib-dev"
+install=
+triggers="$pkgname.trigger:/usr/share/fonts/*"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="96ca346f185c0ab48e42bf5bb0375da5 mkfontscale-1.0.7.tar.bz2"
diff --git a/main/mkfontscale/mkfontscale.trigger b/main/mkfontscale/mkfontscale.trigger
new file mode 100644
index 0000000000..2357e06dc0
--- /dev/null
+++ b/main/mkfontscale/mkfontscale.trigger
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for i in "$@"; do
+ mkfontscale "$i"
+done
+
diff --git a/main/mousepad/APKBUILD b/main/mousepad/APKBUILD
new file mode 100644
index 0000000000..ad5524f1d7
--- /dev/null
+++ b/main/mousepad/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=mousepad
+pkgver=0.2.16
+pkgrel=0
+pkgdesc="Simple Text Editor for Xfce4 (based on Gedit)"
+url="http://www.xfce.org/~benny/apps.html"
+license="GPL-2"
+makedepends="pkgconfig libxfcegui4-dev intltool gettext-dev libiconv-dev
+ libsm-dev e2fsprogs-dev expat-dev"
+depends="desktop-file-utils"
+install="mousepad.post-install mousepad.post-deinstall"
+source="http://www.xfce.org/archive/xfce-4.6.0/src/$pkgname-$pkgver.tar.bz2
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="d98854edb76d823ac20b266fdf5a64a1 mousepad-0.2.16.tar.bz2
+5ee3bbceee9d5e58b6fd8afeba87980b mousepad.post-install
+5ee3bbceee9d5e58b6fd8afeba87980b mousepad.post-deinstall"
diff --git a/main/mousepad/mousepad.post-deinstall b/main/mousepad/mousepad.post-deinstall
new file mode 120000
index 0000000000..4e963a9a02
--- /dev/null
+++ b/main/mousepad/mousepad.post-deinstall
@@ -0,0 +1 @@
+mousepad.post-install \ No newline at end of file
diff --git a/main/mousepad/mousepad.post-install b/main/mousepad/mousepad.post-install
new file mode 100644
index 0000000000..e20da06b3d
--- /dev/null
+++ b/main/mousepad/mousepad.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+update-desktop-database -q
+
diff --git a/main/mrxvt/APKBUILD b/main/mrxvt/APKBUILD
new file mode 100644
index 0000000000..3dba1c4c83
--- /dev/null
+++ b/main/mrxvt/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Mark Constable <markc@renta.net>
+# Maintainer: Mark Constable <markc@renta.net>
+pkgname=mrxvt
+pkgver=0.5.4
+pkgrel=0
+pkgdesc="A multi-tabbed X terminal emulator based on rxvt code"
+url="http://materm.sourceforge.net/wiki/pmwiki.php"
+license="GPL"
+makedepends="libpng-dev jpeg-dev libxft-dev libxpm-dev libx11-dev"
+subpackages="$pkgname-doc"
+source="
+ http://downloads.sourceforge.net/sourceforge/materm/$pkgname-$pkgver.tar.gz
+ mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch
+ mrxvt.desktop
+ "
+
+build()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p1 < ../mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch || return 1
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-xft \
+ --enable-text-shadow \
+ --enable-transparency \
+ --enable-smart-resize \
+ --enable-menubar \
+ --disable-ourstrings \
+ --enable-linespace \
+ --enable-256colors \
+ --enable-xim \
+ --enable-thai \
+ --enable-greek \
+ --enable-cjk \
+ --enable-backspace-key \
+ --with-save-lines=2048 || return 1
+ make || return 1
+ make DESTDIR=$pkgdir install || return 1
+ install -Dm644 ../mrxvt.desktop $pkgdir/usr/share/applications/mrxvt.desktop
+
+}
+md5sums="0232c8868484751dcb931a28f0756f69 mrxvt-0.5.4.tar.gz
+e4a8bb2521246aba85f8dcaa01aed527 mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch
+6ba3bcd484c8dad1b0b48465ded54de3 mrxvt.desktop"
diff --git a/main/mrxvt/mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch b/main/mrxvt/mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch
new file mode 100644
index 0000000000..c9af740e50
--- /dev/null
+++ b/main/mrxvt/mrxvt-0.5.4-002-fix-segfault-when-wd-empty.patch
@@ -0,0 +1,12 @@
+diff -ru a/src/tabbar.c b/src/tabbar.c
+--- a/src/tabbar.c 2009-08-19 21:12:48.000000000 +0000
++++ b/src/tabbar.c 2009-08-19 21:13:35.000000000 +0000
+@@ -1314,7 +1314,7 @@
+ if( p.we_wordc > 1)
+ rxvt_msg( DBG_ERROR, DBG_TABBAR,
+ "Too many words when expanding %s\n", cwdOption );
+- else
++ else if( NOT_NULL( *p.we_wordv ) )
+ {
+ filename = *p.we_wordv;
+
diff --git a/main/mrxvt/mrxvt.desktop b/main/mrxvt/mrxvt.desktop
new file mode 100644
index 0000000000..fc2173ddb7
--- /dev/null
+++ b/main/mrxvt/mrxvt.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=mrxvt
+Comment=MultiTabbed rxvt Terminal
+Exec=mrxvt
+Icon=mrxvt
+Terminal=false
+Type=Application
+Categories=Application;TerminalEmulator;
+GenericName=Terminal
diff --git a/main/orage/APKBUILD b/main/orage/APKBUILD
new file mode 100644
index 0000000000..b310c80c60
--- /dev/null
+++ b/main/orage/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=orage
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="A simple calendar application with reminders for Xfce"
+url="http://www.xfce.org/projects/orage/"
+license="GPL-2"
+subpackages="$pkgname-doc"
+depends="hicolor-icon-theme"
+makedepends="pkgconfig xfce4-panel-dev libnotify-dev intltool gettext-dev
+ libiconv-dev libsm-dev expat-dev e2fsprogs-dev"
+install="orage.post-install orage.post-deinstall"
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="24fa43dd86ec5af5a4766620fd972cf2 orage-4.6.1.tar.bz2
+db51db79681eadc47be4932355a77c25 orage.post-install
+db51db79681eadc47be4932355a77c25 orage.post-deinstall"
diff --git a/main/orage/orage.post-deinstall b/main/orage/orage.post-deinstall
new file mode 120000
index 0000000000..eef6db267a
--- /dev/null
+++ b/main/orage/orage.post-deinstall
@@ -0,0 +1 @@
+orage.post-install \ No newline at end of file
diff --git a/main/orage/orage.post-install b/main/orage/orage.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/orage/orage.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/pango/APKBUILD b/main/pango/APKBUILD
new file mode 100644
index 0000000000..b7687936f4
--- /dev/null
+++ b/main/pango/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=pango
+pkgver=1.26.2
+pkgrel=0
+pkgdesc="A library for layout and rendering of text"
+url="http://www.pango.org/"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig glib-dev cairo-dev libxft-dev gettext-dev libiconv-dev
+ expat-dev"
+install="pango.post-install $pkgname.pre-deinstall"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev freetype-dev fontconfig-dev libxft-dev"
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="f30212b8833af3ce5c82121dc309e3d0 pango-1.26.2.tar.bz2"
diff --git a/main/pango/pango.post-install b/main/pango/pango.post-install
new file mode 100644
index 0000000000..15a6090db5
--- /dev/null
+++ b/main/pango/pango.post-install
@@ -0,0 +1,2 @@
+#!/bin/sh
+pango-querymodules > /etc/pango/pango.modules
diff --git a/main/pango/pango.pre-deinstall b/main/pango/pango.pre-deinstall
new file mode 100644
index 0000000000..92127b59de
--- /dev/null
+++ b/main/pango/pango.pre-deinstall
@@ -0,0 +1,2 @@
+#!/bin/sh
+rm -f /etc/pango/pango.modules
diff --git a/main/parole/APKBUILD b/main/parole/APKBUILD
new file mode 100644
index 0000000000..e5db914d72
--- /dev/null
+++ b/main/parole/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=parole
+pkgver=0.2.0.1
+pkgrel=0
+pkgdesc="Media player for the Xfce desktop"
+url="http://goodies.xfce.org/projects/applications/parole/"
+license="GPL"
+depends=""
+makedepends="libxfcegui4-dev libxfce4util-dev intltool gstreamer-dev bash
+ gst-plugins-base-dev libsm-dev taglib-dev libnotify-dev"
+install=
+subpackages="$pkgname-dev"
+source="http://archive.xfce.org/src/apps/parole/0.2/parole-$pkgver.tar.bz2"
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --enable-browser-plugin \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="0c0dd481506e99fa4f28c69a93585322 parole-0.2.0.1.tar.bz2"
diff --git a/main/pixman/APKBUILD b/main/pixman/APKBUILD
new file mode 100644
index 0000000000..7177427cb2
--- /dev/null
+++ b/main/pixman/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=pixman
+pkgver=0.16.4
+pkgrel=0
+pkgdesc="Pixman library"
+url="http://xorg.freedesktop.org"
+license="custom"
+subpackages="$pkgname-dev"
+depends=
+makedepends="perl"
+source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-static || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="70c249a575ed02b7a5daa1bc9f9c6a4e pixman-0.16.4.tar.bz2"
diff --git a/main/poppler-gtk/APKBUILD b/main/poppler-gtk/APKBUILD
new file mode 100644
index 0000000000..7207f83930
--- /dev/null
+++ b/main/poppler-gtk/APKBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+# this aport only includes glib/gtk support in order to break the
+# circular make dependency: gtk <- cups <- poppler <- gtk
+pkgname=poppler-gtk
+_realname=poppler
+pkgver=0.12.0
+pkgrel=1
+pkgdesc="PDF rendering library based on xpdf 3.0"
+url="http://poppler.freedesktop.org/"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="jpeg-dev cairo-dev libxml2-dev fontconfig-dev pkgconfig
+ glib-dev gtk+-dev poppler-dev"
+depends=
+replaces="poppler-glib"
+depends_dev="cairo-dev glib-dev gtk+-dev poppler-dev"
+source="http://poppler.freedesktop.org/poppler-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/$_realname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-cairo-output \
+ --enable-xpdf-headers \
+ --enable-libjpeg \
+ --enable-zlib \
+ --enable-poppler-glib \
+ --enable-gdk \
+ --disable-poppler-qt4 \
+ --disable-poppler-qt \
+ --disable-utils \
+ || return 1
+ make || return 1
+ install -D -m644 poppler-glib.pc "$pkgdir"/usr/lib/pkgconfig/poppler-glib.pc
+ cd glib
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="399b25d9d71ad22bc9a2a9281769c49c poppler-0.12.0.tar.gz"
diff --git a/main/poppler/APKBUILD b/main/poppler/APKBUILD
new file mode 100644
index 0000000000..b93a93105e
--- /dev/null
+++ b/main/poppler/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+# this aport does not include glib/gtk support in order to break the
+# circular make dependency: gtk <- cups <- poppler <- gtk
+# So we build gtk support in poppler-gtk
+pkgname=poppler
+pkgver=0.12.3
+pkgrel=0
+pkgdesc="PDF rendering library based on xpdf 3.0"
+url="http://poppler.freedesktop.org/"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
+makedepends="jpeg-dev cairo-dev libxml2-dev fontconfig-dev pkgconfig"
+depends=
+depends_dev="cairo-dev"
+source="http://$pkgname.freedesktop.org/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-cairo-output \
+ --enable-xpdf-headers \
+ --enable-libjpeg \
+ --enable-zlib \
+ --disable-poppler-glib \
+ --disable-gdk \
+ --disable-poppler-qt4 \
+ --disable-poppler-qt \
+ || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+utils() {
+ pkgdesc="Poppler's xpdf-workalike command line utilities"
+ install -d "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="d0ca8344d8d94e27aaba6d432688365d poppler-0.12.3.tar.gz"
diff --git a/main/randrproto/APKBUILD b/main/randrproto/APKBUILD
new file mode 100644
index 0000000000..124c78db91
--- /dev/null
+++ b/main/randrproto/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=randrproto
+pkgver=1.3.1
+pkgrel=0
+pkgdesc="X11 RandR extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -d -m755 "$pkgdir"/usr/share/licenses/$pkgname
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="a5c244c36382b0de39b2828cea4b651d randrproto-1.3.1.tar.bz2"
diff --git a/main/rarian/APKBUILD b/main/rarian/APKBUILD
new file mode 100644
index 0000000000..7649544905
--- /dev/null
+++ b/main/rarian/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=rarian
+pkgver=0.8.1
+pkgrel=1
+pkgdesc="Documentation meta-data library, designed as a replacement for Scrollkeeper."
+url="http://rarian.freedesktop.org/"
+license="GPL"
+subpackages="$pkgname-dev"
+depends="bash"
+makedepends="libxslt-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/0.8/$pkgname-$pkgver.tar.bz2
+ user-segfault.patch"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p0 -i "$srcdir"/user-segfault.patch || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-scrollkeeper-compat \
+ --disable-static || return 1
+ make || return 1
+ make -j1 DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="75091185e13da67a0ff4279de1757b94 rarian-0.8.1.tar.bz2
+457e9827197009cfa360911fe49a5ad7 user-segfault.patch"
diff --git a/main/rarian/user-segfault.patch b/main/rarian/user-segfault.patch
new file mode 100644
index 0000000000..3311cecdd2
--- /dev/null
+++ b/main/rarian/user-segfault.patch
@@ -0,0 +1,14 @@
+--- util/rarian-sk-get-cl.cpp~ 2008-07-28 19:23:28.000000000 +0200
++++ util/rarian-sk-get-cl.cpp 2008-07-28 19:23:28.000000000 +0200
+@@ -160,6 +160,11 @@
+ {
+ char *filename = NULL;
+ char *user = getenv ("USERNAME");
++
++ if (user == NULL) {
++ user = getenv ("USER");
++ }
++
+ char *basepath = NULL;
+ int i=0;
+ int last = 0;
diff --git a/main/rdesktop/APKBUILD b/main/rdesktop/APKBUILD
new file mode 100644
index 0000000000..b705c0ffc0
--- /dev/null
+++ b/main/rdesktop/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=rdesktop
+pkgver=1.6.0
+pkgrel=0
+pkgdesc="rdesktop is used to connect to windows terminal servers"
+url="http://www.rdesktop.org/"
+license="GPL"
+subpackages="$pkgname-doc"
+depends="libx11 openssl libao libsamplerate"
+makedepends="libx11-dev libao-dev openssl-dev libsamplerate-dev"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --with-sound=ao
+ make || return 1
+ make DESTDIR="$pkgdir" install
+}
+md5sums="c6fcbed7f0ad7e60ac5fcb2d324d8b16 rdesktop-1.6.0.tar.gz"
diff --git a/main/recordproto/APKBUILD b/main/recordproto/APKBUILD
new file mode 100644
index 0000000000..dd638a5969
--- /dev/null
+++ b/main/recordproto/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=recordproto
+pkgver=1.14
+pkgrel=0
+pkgdesc="X11 Record extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+md5sums="70f5998c673aa510e2acd6d8fb3799de recordproto-1.14.tar.bz2"
diff --git a/main/renderproto/APKBUILD b/main/renderproto/APKBUILD
new file mode 100644
index 0000000000..195a760cff
--- /dev/null
+++ b/main/renderproto/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=renderproto
+pkgver=0.11
+pkgrel=0
+pkgdesc="X11 Render extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+subpackages="$pkgname-doc"
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="b160a9733fe91b666e74fca284333148 renderproto-0.11.tar.bz2"
diff --git a/main/resourceproto/APKBUILD b/main/resourceproto/APKBUILD
new file mode 100644
index 0000000000..b688ccd8ce
--- /dev/null
+++ b/main/resourceproto/APKBUILD
@@ -0,0 +1,18 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=resourceproto
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="X11 Resource extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="84795594b3ebd2ee2570cf93340d152c resourceproto-1.1.0.tar.bz2"
diff --git a/main/rgb/APKBUILD b/main/rgb/APKBUILD
new file mode 100644
index 0000000000..73bbd8233b
--- /dev/null
+++ b/main/rgb/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=rgb
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="X.org utility to display an rgb color-name database"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig xproto"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="44ea16cc3104de6401bc74035f642357 rgb-1.0.3.tar.bz2"
diff --git a/main/ristretto/APKBUILD b/main/ristretto/APKBUILD
new file mode 100644
index 0000000000..4daa725939
--- /dev/null
+++ b/main/ristretto/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ristretto
+pkgver=0.0.22
+pkgrel=1
+pkgdesc="Ristretto is a image viewer for Xfce"
+url="http://goodies.xfce.org/projects/applications/ristretto"
+license="GPL-2"
+depends="desktop-file-utils hicolor-icon-theme"
+makedepends="pkgconfig libxfcegui4-dev dbus-glib-dev libexif-dev intltool
+ gettext-dev libiconv-dev thunar-dev"
+install=
+source="http://goodies.xfce.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-xfce-desktop \
+ --disable-static || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="978ae19472c5a0b7d4b6622a68234a67 ristretto-0.0.22.tar.gz"
diff --git a/main/scrnsaverproto/APKBUILD b/main/scrnsaverproto/APKBUILD
new file mode 100644
index 0000000000..292827d0ce
--- /dev/null
+++ b/main/scrnsaverproto/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=scrnsaverproto
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="X11 Screen Saver extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname
+ install -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/ || return 1
+}
+md5sums="9040c991a56ee9b5976936f8c65d5c8a scrnsaverproto-1.2.0.tar.bz2"
diff --git a/main/scrot/APKBUILD b/main/scrot/APKBUILD
new file mode 100644
index 0000000000..ee98edd623
--- /dev/null
+++ b/main/scrot/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=scrot
+pkgver=0.8
+pkgrel=3
+pkgdesc="A simple command-line screenshot utility for X"
+url="http://linuxbrit.co.uk/scrot/"
+license="MIT"
+subpackages="$pkgname-doc"
+depends=
+makedepends="giblib-dev imlib2-dev libx11-dev"
+source="http://linuxbrit.co.uk/downloads/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" docsdir=/usr/share/doc/scrot install || return 1
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+md5sums="ccae904d225609571bdd3b03445c1e88 scrot-0.8.tar.gz"
diff --git a/main/sdl/APKBUILD b/main/sdl/APKBUILD
new file mode 100644
index 0000000000..e81c806441
--- /dev/null
+++ b/main/sdl/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=sdl
+pkgver=1.2.14
+pkgrel=0
+pkgdesc="A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard"
+url="http://www.libsdl.org"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+depends_dev="libx11-dev libiconv-dev"
+makedepends="libxext-dev libxrender-dev libx11-dev libice-dev libsm-dev
+ libxrandr-dev mesa-dev alsa-lib-dev libiconv-dev"
+source="http://www.libsdl.org/release/SDL-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/SDL-$pkgver
+ ./configure --prefix=/usr \
+ --disable-nasm \
+ --disable-esd \
+ --enable-alsa \
+ --with-x \
+ --disable-rpath \
+ --disable-nls
+ make
+}
+
+package() {
+ cd "$srcdir"/SDL-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="e52086d1b508fa0b76c52ee30b55bec4 SDL-1.2.14.tar.gz"
diff --git a/main/sessreg/APKBUILD b/main/sessreg/APKBUILD
new file mode 100644
index 0000000000..4e1cba4e0d
--- /dev/null
+++ b/main/sessreg/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=sessreg
+pkgver=1.0.5
+pkgrel=0
+pkgdesc="manage utmp/wtmp entries for non-init clients"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig xproto"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="00e834c3cbfd990e9d7d5ddc834242df sessreg-1.0.5.tar.bz2"
diff --git a/main/setxkbmap/APKBUILD b/main/setxkbmap/APKBUILD
new file mode 100644
index 0000000000..2b8eb19b69
--- /dev/null
+++ b/main/setxkbmap/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=setxkbmap
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="set the keyboard using the X Keyboard Extension"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig libxkbfile-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR=""$pkgdir"" install || return 1
+}
+md5sums="2f902e0a89aaf2b19e06e7f26c6efb3a setxkbmap-1.1.0.tar.bz2"
diff --git a/main/shared-mime-info/APKBUILD b/main/shared-mime-info/APKBUILD
new file mode 100644
index 0000000000..551093e2e3
--- /dev/null
+++ b/main/shared-mime-info/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=shared-mime-info
+pkgver=0.70
+pkgrel=0
+pkgdesc="Freedesktop.org Shared MIME Info"
+url="http://freedesktop.org/Software/shared-mime-info"
+license="GPL"
+makedepends="libxml2-dev glib-dev intltool"
+depends=
+install="$pkgname.post-deinstall"
+triggers="$pkgname.trigger:/usr/share/mime"
+subpackages="$pkgname-doc"
+source="http://freedesktop.org/~hadess/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-update-mimedb || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+md5sums="9032d98f14b8e13e0fea4bf45ca23401 shared-mime-info-0.70.tar.bz2"
diff --git a/main/shared-mime-info/shared-mime-info.post-deinstall b/main/shared-mime-info/shared-mime-info.post-deinstall
new file mode 100644
index 0000000000..afb88818c7
--- /dev/null
+++ b/main/shared-mime-info/shared-mime-info.post-deinstall
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+[ -d usr/share/mime ] || exit 0
+
+cd /usr/share/mime
+rm -rf globs globs2 icons treemagic generic-icons types magic XMLnamespaces \
+ subclasses aliases mime.cache \
+ application audio image inode message model multipart text video \
+ x-content x-epoc
+rmdir packages
+cd /
+rmdir usr/share/mime 2>/dev/null
+
+exit 0
diff --git a/main/shared-mime-info/shared-mime-info.trigger b/main/shared-mime-info/shared-mime-info.trigger
new file mode 100644
index 0000000000..51a3e4953e
--- /dev/null
+++ b/main/shared-mime-info/shared-mime-info.trigger
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in "$@"; do
+ if [ -d "$i" ]; then
+ update-mime-database "$i" > /dev/null 2>&1
+ fi
+done
diff --git a/main/slim-themes/APKBUILD b/main/slim-themes/APKBUILD
new file mode 100644
index 0000000000..450ebbecd8
--- /dev/null
+++ b/main/slim-themes/APKBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=slim-themes
+pkgver=1.2.3
+pkgrel=1
+pkgdesc="Themes Pack for Simple Login Manager"
+url="http://slim.berlios.de"
+license="GPL"
+depends="slim"
+makedepends=""
+options="!strip"
+source="http://download.berlios.de/slim/slim-$pkgver-themepack1a.tar.gz
+ http://download.berlios.de/slim/slim-lake.tar.gz
+ http://download.berlios.de/slim/slim-fingerprint.tar.gz
+ http://download.berlios.de/slim/slim-flat.tar.gz
+ http://download.berlios.de/slim/slim-lunar-0.4.tar.bz2
+ http://download.berlios.de/slim/slim-previous.tar.gz
+ http://download.berlios.de/slim/slim-rainbow.tar.gz
+ http://download.berlios.de/slim/slim-rear-window.tar.gz
+ http://download.berlios.de/slim/slim-scotland-road.tar.gz
+ http://download.berlios.de/slim/slim-subway.tar.gz
+ http://download.berlios.de/slim/slim-wave.tar.gz
+ http://download.berlios.de/slim/slim-zenwalk.tar.gz
+ http://download.berlios.de/slim/slim-debian-moreblue.tar.bz2
+ http://download.berlios.de/slim/slim-1.3.1.tar.gz"
+
+build ()
+{
+ mkdir -p "$pkgdir"/usr/share/slim/themes
+ cd "$srcdir"/
+ mv fingerprint "$pkgdir"/usr/share/slim/themes
+ mv flat "$pkgdir"/usr/share/slim/themes
+ mv previous "$pkgdir"/usr/share/slim/themes
+ mv lake "$pkgdir"/usr/share/slim/themes
+ mv rainbow "$pkgdir"/usr/share/slim/themes
+ mv rear-window "$pkgdir"/usr/share/slim/themes
+ mv scotland-road "$pkgdir"/usr/share/slim/themes
+ mv subway "$pkgdir"/usr/share/slim/themes
+ mv wave "$pkgdir"/usr/share/slim/themes
+ mv slim-lunar-0.4 "$pkgdir"/usr/share/slim/themes/lunar
+ mv Zenwalk "$pkgdir"/usr/share/slim/themes/zenwalk
+ mv parallel-dimensions "$pkgdir"/usr/share/slim/themes
+ mv capernoited "$pkgdir"/usr/share/slim/themes
+ mv mindlock "$pkgdir"/usr/share/slim/themes
+ mv flower2 "$pkgdir"/usr/share/slim/themes
+ mv debian-moreblue "$pkgdir"/usr/share/slim/themes
+ mv slim-1.3.1/themes/default "$pkgdir"/usr/share/slim/themes
+ cd "$pkgdir"/usr/share/slim/themes
+ find . -type f -exec chmod 644 {} \;
+}
+
+md5sums="fd1295d3a260849790dc17081da4a34f slim-1.2.3-themepack1a.tar.gz
+c0cef9e7b95bdf2df3fb303d155f8476 slim-lake.tar.gz
+2981627a5822a535f3ebd0e21dba9f76 slim-fingerprint.tar.gz
+34696aef39fad7092c80ccf7a38886a5 slim-flat.tar.gz
+6fe38013c6eed67dead507616667ae9a slim-lunar-0.4.tar.bz2
+6e846e8adafa70a7bd0e22d5bd06dc5f slim-previous.tar.gz
+631a00eb27c09b0daa50b88bd9606d07 slim-rainbow.tar.gz
+337876e05b2bdf4bd657d114464ad46a slim-rear-window.tar.gz
+fde18fb892bccc383c93fb7ed07fbe84 slim-scotland-road.tar.gz
+8417022e369be012f1b7a4ee04edf0f9 slim-subway.tar.gz
+c727aab888dde774acc04403c84b5b3b slim-wave.tar.gz
+7a0bd7a0736794e638668769b9c4c745 slim-zenwalk.tar.gz
+5f3818e01b0593d0e576fcd7e2c6bafa slim-debian-moreblue.tar.bz2
+727d0acb24c0fbf0751134c37a9c895f slim-1.3.1.tar.gz"
diff --git a/main/slim/APKBUILD b/main/slim/APKBUILD
new file mode 100644
index 0000000000..c0e0a22f6d
--- /dev/null
+++ b/main/slim/APKBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=slim
+pkgver=1.3.1
+pkgrel=3
+pkgdesc="Desktop-independent graphical login manager for X11"
+url="http://slim.berlios.de/"
+license="GPL-2"
+subpackages="$pkgname-doc"
+makedepends="libxmu-dev libpng-dev jpeg-dev libxft-dev"
+depends=
+install=
+source="http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz
+ http://dev.alpinelinux.org/~/ncopa/alpine/slim-alpinelinux.tar.gz
+ $pkgname.logrotate
+ $pkgname.initd
+ slim-1.3.1-gcc4.4.patch
+ slim-restart.patch"
+
+prepare() {
+ cd "$srcdir/slim-$pkgver"
+ for i in ../*.patch; do
+ patch -p1 -i $i || return 1
+ done
+ sed -i -e 's|#xserver_arguments.*|xserver_arguments -nolisten tcp vt07|'\
+ -e 's|/var/run/slim.lock|/var/lock/slim.lock|' \
+ -e 's|halt_cmd.*|halt_cmd /sbin/poweroff|'\
+ -e 's|reboot_cmd.*|reboot_cmd /sbin/reboot|'\
+ -e 's|console_cmd.*|console_cmd /usr/bin/terminal|'\
+ -e 's|login_cmd.*|login_cmd exec /bin/sh -l /etc/X11/xinit/xinitrc|' \
+ -e 's|screenshot_cmd.*|screenshot_cmd scrot /slim.png|' \
+ -e 's|imagemagick|scrot|' \
+ -e 's|current_theme.*|current_theme alpinelinux|' \
+ slim.conf || return 1
+}
+
+build() {
+ cd "$srcdir/slim-$pkgver"
+ make CXX="${CXX:-g++}" CC="${CC:-gcc}" || return 1
+}
+
+package() {
+ cd "$srcdir/slim-$pkgver"
+ make DESTDIR="$pkgdir" MANDIR=/usr/share/man install || return 1
+
+ install -D -m755 ../slim.initd "$pkgdir"/etc/init.d/slim || return 1
+ install -D -m644 ../slim.logrotate "$pkgdir"/etc/logrotate.d/slim
+
+ # install our default theme
+ cd "$srcdir"/slim-alpinelinux
+ install -d "$pkgdir"/usr/share/slim/themes/alpinelinux
+ cp background.png panel.png slim.theme \
+ "$pkgdir"/usr/share/slim/themes/alpinelinux/
+ rm -rf "$pkgdir"/usr/share/slim/themes/default
+}
+
+md5sums="727d0acb24c0fbf0751134c37a9c895f slim-1.3.1.tar.gz
+cd63232c7770b0e67a009a94c2a46b82 slim-alpinelinux.tar.gz
+43da096480bf72c3ccec8ad8400f34f0 slim.logrotate
+6ee3a023e56052528295034be809cfc6 slim.initd
+a00df4316e2392fff7e75daf5c826cae slim-1.3.1-gcc4.4.patch
+648d871fe7d2a97b7d7b928019e2feee slim-restart.patch"
diff --git a/main/slim/slim-1.3.1-gcc4.4.patch b/main/slim/slim-1.3.1-gcc4.4.patch
new file mode 100644
index 0000000000..5708d70717
--- /dev/null
+++ b/main/slim/slim-1.3.1-gcc4.4.patch
@@ -0,0 +1,17 @@
+Patch to allow compilation with gcc-4.4
+
+Notified by Daniel J. - from Debian bug tracker
+
+http://bugs.gentoo.org/252745
+
+--- a/switchuser.h 2008-11-11 19:40:18.000000000 +0000
++++ b/switchuser.h 2008-11-11 19:40:28.000000000 +0000
+@@ -18,6 +18,7 @@
+ #include <pwd.h>
+ #include <grp.h>
+ #include <paths.h>
++#include <cstdio>
+ #include <iostream>
+ #include "const.h"
+ #include "cfg.h"
+
diff --git a/main/slim/slim-restart.patch b/main/slim/slim-restart.patch
new file mode 100644
index 0000000000..1f9c02dfff
--- /dev/null
+++ b/main/slim/slim-restart.patch
@@ -0,0 +1,141 @@
+diff -ur slim-1.3.1.orig/app.cpp slim-1.3.1/app.cpp
+--- slim-1.3.1.orig/app.cpp 2008-09-26 02:54:15.000000000 +0200
++++ slim-1.3.1/app.cpp 2008-11-21 20:38:48.000000000 +0100
+@@ -102,6 +102,11 @@
+
+ extern App* LoginApp;
+
++int xioerror(Display *disp) {
++ LoginApp->RestartServer();
++ return 0;
++}
++
+ void CatchSignal(int sig) {
+ cerr << APPNAME << ": unexpected signal " << sig << endl;
+ LoginApp->StopServer();
+@@ -109,19 +114,6 @@
+ exit(ERR_EXIT);
+ }
+
+-
+-void AlarmSignal(int sig) {
+- int pid = LoginApp->GetServerPID();
+- if(waitpid(pid, NULL, WNOHANG) == pid) {
+- LoginApp->StopServer();
+- LoginApp->RemoveLock();
+- exit(OK_EXIT);
+- }
+- signal(sig, AlarmSignal);
+- alarm(2);
+-}
+-
+-
+ void User1Signal(int sig) {
+ signal(sig, User1Signal);
+ }
+@@ -267,7 +259,6 @@
+ signal(SIGHUP, CatchSignal);
+ signal(SIGPIPE, CatchSignal);
+ signal(SIGUSR1, User1Signal);
+- signal(SIGALRM, AlarmSignal);
+
+ #ifndef XNEST_DEBUG
+ OpenLog();
+@@ -287,7 +278,6 @@
+
+ CreateServerAuth();
+ StartServer();
+- alarm(2);
+ #endif
+
+ }
+@@ -603,6 +593,8 @@
+ int status;
+ while (wpid != pid) {
+ wpid = wait(&status);
++ if (wpid == ServerPID)
++ xioerror(Dpy); // Server died, simulate IO error
+ }
+ if (WIFEXITED(status) && WEXITSTATUS(status)) {
+ LoginPanel->Message("Failed to execute login command");
+@@ -648,9 +640,6 @@
+
+
+ void App::Reboot() {
+- // Stop alarm clock
+- alarm(0);
+-
+ #ifdef USE_PAM
+ try{
+ pam.end();
+@@ -673,9 +662,6 @@
+
+
+ void App::Halt() {
+- // Stop alarm clock
+- alarm(0);
+-
+ #ifdef USE_PAM
+ try{
+ pam.end();
+@@ -761,6 +747,7 @@
+
+ StopServer();
+ RemoveLock();
++ while (waitpid(-1, NULL, WNOHANG) > 0); // Collects all dead childrens
+ Run();
+ }
+
+@@ -831,6 +818,7 @@
+
+ for(cycles = 0; cycles < ncycles; cycles++) {
+ if((Dpy = XOpenDisplay(DisplayName))) {
++ XSetIOErrorHandler(xioerror);
+ return 1;
+ } else {
+ if(!ServerTimeout(1, (char *) "X server to begin accepting connections"))
+@@ -913,9 +901,6 @@
+ ServerPID = -1;
+ break;
+ }
+- alarm(15);
+- pause();
+- alarm(0);
+
+ // Wait for server to start up
+ if(WaitForServer() == 0) {
+@@ -948,15 +933,12 @@
+
+
+ void App::StopServer() {
+- // Stop alars clock and ignore signals
+- alarm(0);
+ signal(SIGQUIT, SIG_IGN);
+ signal(SIGINT, SIG_IGN);
+ signal(SIGHUP, SIG_IGN);
+ signal(SIGPIPE, SIG_IGN);
+ signal(SIGTERM, SIG_DFL);
+ signal(SIGKILL, SIG_DFL);
+- signal(SIGALRM, SIG_DFL);
+
+ // Catch X error
+ XSetIOErrorHandler(IgnoreXIO);
+diff -ur slim-1.3.1.orig/app.h slim-1.3.1/app.h
+--- slim-1.3.1.orig/app.h 2008-09-26 02:54:15.000000000 +0200
++++ slim-1.3.1/app.h 2008-11-21 20:38:48.000000000 +0100
+@@ -34,6 +34,7 @@
+ ~App();
+ void Run();
+ int GetServerPID();
++ void RestartServer();
+ void StopServer();
+
+ // Lock functions
+@@ -48,7 +49,6 @@
+ void Console();
+ void Exit();
+ void KillAllClients(Bool top);
+- void RestartServer();
+ void ReadConfig();
+ void OpenLog();
+ void CloseLog();
diff --git a/main/slim/slim.initd b/main/slim/slim.initd
new file mode 100755
index 0000000000..4ab113b6b0
--- /dev/null
+++ b/main/slim/slim.initd
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+depends() {
+ needs localmount
+}
+
+start() {
+ ebegin "Starting slim"
+ start-stop-daemon --start --quiet --exec /usr/bin/slim -- -d
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping slim"
+ start-stop-daemon --stop --quiet --exec /usr/bin/slim
+ eend $?
+}
+
diff --git a/main/slim/slim.install b/main/slim/slim.install
new file mode 100644
index 0000000000..45eb02fa13
--- /dev/null
+++ b/main/slim/slim.install
@@ -0,0 +1,7 @@
+post_install() {
+ cat << _EOF
+
+ Add slim to the DAEMONS array in /etc/rc.conf or update /etc/inittab.
+
+_EOF
+}
diff --git a/main/slim/slim.logrotate b/main/slim/slim.logrotate
new file mode 100644
index 0000000000..26ec3b0f42
--- /dev/null
+++ b/main/slim/slim.logrotate
@@ -0,0 +1,9 @@
+/var/log/slim.log {
+ compress
+ rotate 1
+ size 1024k
+ notifempty
+ missingok
+ copytruncate
+ noolddir
+}
diff --git a/main/sox/APKBUILD b/main/sox/APKBUILD
new file mode 100644
index 0000000000..166d08b256
--- /dev/null
+++ b/main/sox/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=sox
+pkgver=14.3.0
+pkgrel=0
+pkgdesc="The Swiss Army knife of sound processing tools"
+url="http://sox.sourceforge.net/"
+license="GPL LGPL"
+makedepends="ffmpeg-dev libao-dev libvorbis-dev libogg-dev lame-dev
+ libmad-dev bash alsa-lib-dev libsndfile-dev libsamplerate-dev
+ libtool file-dev libid3tag-dev"
+depends=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
+ sox-uclibc.patch"
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p1 -i ../sox-uclibc.patch
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-dyn-default \
+ --with-distro="Alpine Linux" || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ ln -sf play "$pkgdir"/usr/bin/rec || return 1
+ ln -sf ../man1/sox.1.gz "$pkgdir"/usr/share/man/man7/soxeffect.7
+}
+md5sums="8e3509804e6227273ef84092e1a2fea7 sox-14.3.0.tar.gz
+d8267f718ba6b4fb2f48c5104af31364 sox-uclibc.patch"
diff --git a/main/sox/sox-uclibc.patch b/main/sox/sox-uclibc.patch
new file mode 100644
index 0000000000..fb78cd0968
--- /dev/null
+++ b/main/sox/sox-uclibc.patch
@@ -0,0 +1,22 @@
+diff --git a/src/formats.c b/src/formats.c
+index 556f611..6c2c5b0 100644
+--- a/src/formats.c
++++ b/src/formats.c
+@@ -395,7 +395,7 @@ static void UNUSED rewind_pipe(FILE * fp)
+ #if defined _NEWLIB_VERSION || defined __APPLE__
+ fp->_p -= AUTO_DETECT_SIZE;
+ fp->_r += AUTO_DETECT_SIZE;
+-#elif defined __GLIBC__
++#elif defined __GLIBC__ && ! defined __UCLIBC__
+ fp->_IO_read_ptr = fp->_IO_read_base;
+ #elif defined _MSC_VER || defined __MINGW_H || defined _ISO_STDIO_ISO_H
+ fp->_ptr = fp->_base;
+@@ -403,7 +403,7 @@ static void UNUSED rewind_pipe(FILE * fp)
+ /* To fix this #error, either simply remove the #error line and live without
+ * file-type detection with pipes, or add support for your compiler in the
+ * lines above. Test with cat monkey.au | ./sox --info - */
+- #error FIX NEEDED HERE
++/* #error FIX NEEDED HERE */
+ #define NO_REWIND_PIPE
+ (void)fp;
+ #endif
diff --git a/main/startup-notification/APKBUILD b/main/startup-notification/APKBUILD
new file mode 100644
index 0000000000..34f81011ec
--- /dev/null
+++ b/main/startup-notification/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=startup-notification
+pkgver=0.10
+pkgrel=0
+pkgdesc="Monitor and display application startup"
+url="http://www.freedesktop.org"
+license="LGPL"
+subpackages="$pkgname-dev"
+depends="libx11 libsm xcb-util"
+makedepends="libx11-dev libsm-dev xcb-util-dev"
+source="http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="bca0ed1c74bc4e483ea2ed12a5717354 startup-notification-0.10.tar.gz"
diff --git a/main/swfdec-mozilla/APKBUILD b/main/swfdec-mozilla/APKBUILD
new file mode 100644
index 0000000000..b2409e8da5
--- /dev/null
+++ b/main/swfdec-mozilla/APKBUILD
@@ -0,0 +1,22 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=swfdec-mozilla
+pkgver=0.8.2
+pkgrel=0
+pkgdesc="free plugin for Mozilla browsers that uses the Swfdec library for playing SWF files"
+url="http://swfdec.freedesktop.org"
+license="LGPL"
+makedepends="swfdec-dev"
+depends=
+source="http://swfdec.freedesktop.org/download/$pkgname/0.8/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-static \
+ --with-plugin-dir=/usr/lib/mozilla/plugins/
+ make || return 1
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="716632e0d35b3c1582c180569ba30346 swfdec-mozilla-0.8.2.tar.gz"
diff --git a/main/swfdec/APKBUILD b/main/swfdec/APKBUILD
new file mode 100644
index 0000000000..3225d0a463
--- /dev/null
+++ b/main/swfdec/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=swfdec
+pkgver=0.8.4
+pkgrel=1
+pkgdesc="free library for decoding and rendering Flash animations"
+url="http://swfdec.freedesktop.org"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="alsa-lib-dev liboil-dev gtk+-dev libsoup-dev gstreamer-dev
+ gst-plugins-base-dev"
+depends=
+depends_dev="glib-dev liboil-dev cairo-dev pango-dev gtk+-dev libsoup-dev
+ gstreamer-dev gst-plugins-base-dev alsa-lib-dev"
+source="http://$pkgname.freedesktop.org/download/$pkgname/0.8/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --disable-static \
+ --enable-gtk \
+ --enable-gstreamer \
+ --enable-soup \
+ --with-audio=alsa
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="aece501d0e73f3e564200a44ec03c385 swfdec-0.8.4.tar.gz"
diff --git a/main/sylpheed/APKBUILD b/main/sylpheed/APKBUILD
new file mode 100644
index 0000000000..f0fe701c21
--- /dev/null
+++ b/main/sylpheed/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=sylpheed
+pkgver=2.7.1
+pkgrel=2
+pkgdesc="Lightweight and user-friendly e-mail client"
+url="http://sylpheed.sraoss.jp/en/"
+license="GPL"
+depends=
+makedepends="gtk+-dev openldap-dev openssl-dev"
+subpackages="$pkgname-dev"
+source="http://$pkgname.sraoss.jp/$pkgname/v2.7/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir/sylpheed-$pkgver"
+ ./configure --prefix=/usr \
+ --enable-ldap \
+ --disable-gtkspell || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir/sylpheed-$pkgver"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="1f470525c1fbe53253813a0978c18228 sylpheed-2.7.1.tar.bz2"
diff --git a/main/tango-icon-theme/APKBUILD b/main/tango-icon-theme/APKBUILD
new file mode 100644
index 0000000000..9c5e9f77b7
--- /dev/null
+++ b/main/tango-icon-theme/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=tango-icon-theme
+pkgver=0.8.1
+pkgrel=0
+pkgdesc="The Tango Desktop Project exists to create a consistent user experience"
+url="http://tango.freedesktop.org"
+license="CCPL-Attribution-ShareAlike-2.5"
+depends= #"librsvg"
+makedepends="pkgconfig intltool icon-naming-utils imagemagick-dev libiconv-dev"
+source="http://tango.freedesktop.org/releases/$pkgname-$pkgver.tar.gz"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="32d5258f448b5982af9cfa4364f31d41 tango-icon-theme-0.8.1.tar.gz"
diff --git a/main/terminal/APKBUILD b/main/terminal/APKBUILD
new file mode 100644
index 0000000000..baae13eb51
--- /dev/null
+++ b/main/terminal/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=terminal
+pkgver=0.4.3
+pkgrel=0
+pkgdesc="A modern terminal emulator primarly for the Xfce desktop environment"
+url="http://www.xfce.org/projects/terminal/"
+license="GPL-2"
+subpackages="$pkgname-doc"
+depends="startup-notification hicolor-icon-theme"
+makedepends="pkgconfig exo-dev vte-dev dbus-glib-dev gettext-dev libiconv-dev
+ intltool"
+install=
+source="http://archive.xfce.org/src/apps/${pkgname}/0.4/Terminal-${pkgver}.tar.bz2
+ "
+
+build() {
+ cd "$srcdir"/Terminal-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/Terminal-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="0ce66b16bcb7ff274d7f93a69993f717 Terminal-0.4.3.tar.bz2"
diff --git a/main/terminal/terminal-dont-die-on-dbus-kill.patch b/main/terminal/terminal-dont-die-on-dbus-kill.patch
new file mode 100644
index 0000000000..3b0da17098
--- /dev/null
+++ b/main/terminal/terminal-dont-die-on-dbus-kill.patch
@@ -0,0 +1,10 @@
+--- a/terminal/terminal-dbus.c.orig 2007-01-23 22:25:12.000000000 +0000
++++ b/terminal/terminal-dbus.c 2007-01-23 22:25:50.000000000 +0000
+@@ -191,6 +191,7 @@ terminal_dbus_register_service (Terminal
+
+ /* register DBus connection with GLib main loop */
+ dbus_connection_setup_with_g_main (connection, NULL);
++ dbus_connection_set_exit_on_disconnect (connection, FALSE);
+
+ if (dbus_bus_request_name (connection, TERMINAL_DBUS_SERVICE, 0, &derror) < 0)
+ {
diff --git a/main/thunar-archive-plugin/APKBUILD b/main/thunar-archive-plugin/APKBUILD
new file mode 100644
index 0000000000..87162bbf0c
--- /dev/null
+++ b/main/thunar-archive-plugin/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=thunar-archive-plugin
+pkgver=0.2.4
+pkgrel=0
+pkgdesc="create and deflate archives in thunar"
+url="http://xfce-goodies.berlios.de/"
+license="GPL2"
+depends=
+makedepends="gtk+-dev intltool thunar-dev"
+install=
+source="http://download.berlios.de/xfce-goodies/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ # dont want file-roller
+ rm -f "$pkgdir"/usr/lib/xfce4/thunar-archive-plugin/file-roller.tap
+}
+md5sums="4c389e6328af9322937af76382f0baec thunar-archive-plugin-0.2.4.tar.bz2"
diff --git a/main/thunar/APKBUILD b/main/thunar/APKBUILD
new file mode 100644
index 0000000000..2dde6a57f9
--- /dev/null
+++ b/main/thunar/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=thunar
+pkgver=1.0.1
+pkgrel=4
+pkgdesc="File manager for Xfce"
+url="http://thunar.xfce.org"
+license="GPL2 LGPL2"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="desktop-file-utils hicolor-icon-theme"
+makedepends="pkgconfig libexif-dev xfce4-panel-dev exo-dev pcre-dev
+ intltool gettext-dev libiconv-dev expat-dev startup-notification-dev
+ libsm-dev e2fsprogs-dev gamin-dev libexif-dev"
+install=
+source="http://archive.xfce.org/src/xfce/thunar/${pkgver%.*}/Thunar-$pkgver.tar.bz2"
+
+depends_dev="exo-dev glib-dev gamin-dev"
+_builddir="$srcdir"/Thunar-$pkgver
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static \
+ --disable-gnome-thumbnailers \
+ --enable-exif \
+ --enable-pcre
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ sed -i 's:x-directory/gnome-default-handler;::' "$pkgdir"/usr/share/applications/Thunar-folder-handler.desktop
+}
+
+md5sums="218373aa45d74b6ba8c69c4d5af3bb19 Thunar-1.0.1.tar.bz2"
diff --git a/main/thunar/thunar.post-deinstall b/main/thunar/thunar.post-deinstall
new file mode 120000
index 0000000000..b2d507f24a
--- /dev/null
+++ b/main/thunar/thunar.post-deinstall
@@ -0,0 +1 @@
+thunar.post-install \ No newline at end of file
diff --git a/main/thunar/thunar.post-install b/main/thunar/thunar.post-install
new file mode 100644
index 0000000000..591dfaf728
--- /dev/null
+++ b/main/thunar/thunar.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+update-desktop-database -q
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/thunar/thunar.post-upgrade b/main/thunar/thunar.post-upgrade
new file mode 120000
index 0000000000..b2d507f24a
--- /dev/null
+++ b/main/thunar/thunar.post-upgrade
@@ -0,0 +1 @@
+thunar.post-install \ No newline at end of file
diff --git a/main/transmission/APKBUILD b/main/transmission/APKBUILD
new file mode 100644
index 0000000000..7bd64c5efa
--- /dev/null
+++ b/main/transmission/APKBUILD
@@ -0,0 +1,47 @@
+# Maintainer:Carlo Landmeter
+pkgname=transmission
+pkgver=1.74
+pkgel=1
+pkgdesc="Lightweight GTK BitTorrent client"
+url="http://www.tansmissionbt.com"
+install="$pkgname.pre-install"
+license="MIT"
+depends=
+makedepends="openssl-dev pkgconfig curl-dev gtk+-dev intltool"
+source="http://download.m0k.org/transmission/files/transmission-$pkgver.tar.bz2
+ transmission-daemon.initd
+ transmission-daemon.confd
+ "
+subpackages="$pkgname-cli $pkgname-daemon $pkgname-doc"
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man
+ make || return 1
+ make DESTDIR="$pkgdir" install
+}
+
+daemon() {
+ pkgdesc="Lightweight BitTorrent client (daemon and webinterface)"
+ install -d "$subpkgdir"/usr/share "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/transmission-daemon "$subpkgdir"/usr/bin/
+ mv "$pkgdir"/usr/share/transmission "$subpkgdir"/usr/share/
+ install -D -m755 "$srcdir"/transmission-daemon.initd \
+ "$pkgdir"/etc/init.d/transmission-daemon
+ install -D -m644 "$srcdir"/transmission-daemon.confd \
+ "$pkgdir"/etc/conf.d/transmission-daemon
+}
+
+cli() {
+ pkgdesc="Lightweight BitTorrent client (cli and remote)"
+ install -d "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/transmission-remote \
+ "$pkgdir"/usr/bin/transmissioncli \
+ "$subpkgdir"/usr/bin/
+}
+
+md5sums="6b1080800c62308179cfc7a691c82d63 transmission-1.74.tar.bz2
+f65b8ae46f8ac89b35844109b3aa0c18 transmission-daemon.initd
+89478a70fcd93463e1dd8d751da994da transmission-daemon.confd"
diff --git a/main/transmission/transmission-daemon.confd b/main/transmission/transmission-daemon.confd
new file mode 100644
index 0000000000..c1f338f07c
--- /dev/null
+++ b/main/transmission/transmission-daemon.confd
@@ -0,0 +1,18 @@
+#
+# transmission-daemon options
+#
+# -a --acl <list> Access Control List. (Default: +127.0.0.1)
+# -b --blocklist Enable peer blocklists
+# -B --no-blocklist Disable peer blocklists
+# -f --foreground Run in the foreground instead of daemonizing
+# -g --config-dir <path> Where to look for configuration files
+# -p --port <port> RPC port (Default: 9091)
+# -t --auth Require authentication
+# -T --no-auth Don't require authentication
+# -u --username <username> Set username for authentication
+# -v --password <password> Set password for authentication
+# -w --download-dir <path> Where to save downloaded data
+#
+# NOTE: webif does not work without the -f switch
+#
+TD_OPTS="-f -g /var/lib/transmission/.config -w /var/lib/transmission"
diff --git a/main/transmission/transmission-daemon.initd b/main/transmission/transmission-daemon.initd
new file mode 100644
index 0000000000..ecf3bdafef
--- /dev/null
+++ b/main/transmission/transmission-daemon.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ after firewall
+}
+
+start() {
+ ebegin "Starting transmission-daemon"
+ start-stop-daemon --start --quiet --background --make-pidfile \
+ --chuid transmission:transmission \
+ --pidfile /var/run/transmission-daemon.pid \
+ --exec /usr/bin/transmission-daemon -- ${TD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping transmission-daemon"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/transmission-daemon.pid \
+ eend $?
+}
diff --git a/main/transmission/transmission.pre-install b/main/transmission/transmission.pre-install
new file mode 100644
index 0000000000..44a14760f6
--- /dev/null
+++ b/main/transmission/transmission.pre-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+adduser -h /var/lib/transmission -s /bin/false -D transmission 2>/dev/null
+
+exit 0
diff --git a/main/ttf-dejavu/APKBUILD b/main/ttf-dejavu/APKBUILD
new file mode 100644
index 0000000000..a03d07ff57
--- /dev/null
+++ b/main/ttf-dejavu/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=ttf-dejavu
+pkgver=2.29
+pkgrel=0
+pkgdesc="Font family based on the Bitstream Vera Fonts with a wider range of characters"
+url="http://dejavu.sourceforge.net/"
+license="custom"
+depends="fontconfig encodings mkfontdir mkfontscale"
+makedepends=""
+makedepends="pkgconfig font-util-dev"
+install="ttf-dejavu.post-install ttf-dejavu.post-upgrade ttf-dejavu.post-deinstall"
+source="http://downloads.sourceforge.net/dejavu/dejavu-fonts-ttf-$pkgver.tar.bz2
+ $install"
+
+
+build ()
+{
+ cd "$srcdir/dejavu-fonts-ttf-$pkgver"
+ mkdir -p "$pkgdir/usr/share/fonts/TTF" || return 1
+ install -m644 ttf/*.ttf "$pkgdir/usr/share/fonts/TTF" || return 1
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/ttf-dejavu/LICENSE" || return 1
+}
+
+md5sums="d8feb7d57d8b7cbac409df435daa9849 dejavu-fonts-ttf-2.29.tar.bz2
+856423a62dc28d29f91586286173b1ef ttf-dejavu.post-install
+856423a62dc28d29f91586286173b1ef ttf-dejavu.post-upgrade
+856423a62dc28d29f91586286173b1ef ttf-dejavu.post-deinstall"
diff --git a/main/ttf-dejavu/ttf-dejavu.post-deinstall b/main/ttf-dejavu/ttf-dejavu.post-deinstall
new file mode 120000
index 0000000000..8d3da7cfdf
--- /dev/null
+++ b/main/ttf-dejavu/ttf-dejavu.post-deinstall
@@ -0,0 +1 @@
+ttf-dejavu.post-install \ No newline at end of file
diff --git a/main/ttf-dejavu/ttf-dejavu.post-install b/main/ttf-dejavu/ttf-dejavu.post-install
new file mode 100644
index 0000000000..90aedc0b1e
--- /dev/null
+++ b/main/ttf-dejavu/ttf-dejavu.post-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+fc-cache -fs
+mkfontscale usr/share/fonts/TTF
+mkfontdir usr/share/fonts/TTF
+
diff --git a/main/ttf-dejavu/ttf-dejavu.post-upgrade b/main/ttf-dejavu/ttf-dejavu.post-upgrade
new file mode 120000
index 0000000000..8d3da7cfdf
--- /dev/null
+++ b/main/ttf-dejavu/ttf-dejavu.post-upgrade
@@ -0,0 +1 @@
+ttf-dejavu.post-install \ No newline at end of file
diff --git a/main/util-macros/APKBUILD b/main/util-macros/APKBUILD
new file mode 100644
index 0000000000..6a0f09ce02
--- /dev/null
+++ b/main/util-macros/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=util-macros
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="X.Org Autotools macros"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/util/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="dc7ddaf9bea8b341510efe4dac125af4 util-macros-1.2.1.tar.bz2"
diff --git a/main/videoproto/APKBUILD b/main/videoproto/APKBUILD
new file mode 100644
index 0000000000..db19caa095
--- /dev/null
+++ b/main/videoproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=videoproto
+pkgver=2.3.0
+pkgrel=0
+pkgdesc="X11 Video extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="fb762146a18207a1e8bc9f299dfc7ac0 videoproto-2.3.0.tar.bz2"
diff --git a/main/vte/APKBUILD b/main/vte/APKBUILD
new file mode 100644
index 0000000000..cae2d80b57
--- /dev/null
+++ b/main/vte/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=vte
+pkgver=0.22.5
+pkgrel=0
+pkgdesc="Virtual Terminal Emulator library"
+url="http://www.gnome.org"
+license="LGPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig gtk+-dev intltool python ncurses-dev"
+source="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev pango-dev gtk+-dev"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/vte \
+ --localstatedir=/var \
+ --disable-static \
+ || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="cbb17696e40ee175977bf165ef838da2 vte-0.22.5.tar.bz2"
diff --git a/main/webkit/APKBUILD b/main/webkit/APKBUILD
new file mode 100644
index 0000000000..4254b912b3
--- /dev/null
+++ b/main/webkit/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=webkit
+pkgver=1.1.15.4
+pkgrel=0
+pkgdesc="portable web rendering engine WebKit for GTK+"
+url="http://webkitgtk.org/"
+license="LGPL BSD"
+depends=
+makedepends="
+ libsoup-dev pango-dev gtk+-dev jpeg-dev libpng-dev libxml2-dev
+ gperf pkgconfig bison flex icu-dev cairo-dev atk-dev
+ gnutls-dev sqlite-dev libxslt-dev libxt-dev libiconv-dev gettext-dev
+ zlib-dev libgcrypt-dev libgpg-error-dev expat-dev e2fsprogs-dev
+ enchant-dev libxi-dev libxrandr-dev libxcursor-dev libxdamage-dev
+ libxcomposite-dev gstreamer-dev gst-plugins-base-dev
+ "
+install=
+subpackages="$pkgname-dev gtklauncher"
+source="http://webkitgtk.org/$pkgname-$pkgver.tar.gz"
+
+depends_dev="gtk+-dev libsoup-dev gstreamer-dev"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+
+gtklauncher() {
+ pkgdesc="Application to test WebKit"
+ depends=""
+ install=
+ install -Dm755 "$srcdir"/$pkgname-$pkgver/Programs/GtkLauncher \
+ "$subpkgdir"/usr/bin/GtkLauncher
+}
+
+md5sums="47301fb7120421ac38bf714db8f5d428 webkit-1.1.15.4.tar.gz"
diff --git a/main/wv/APKBUILD b/main/wv/APKBUILD
new file mode 100644
index 0000000000..c66ff3b11f
--- /dev/null
+++ b/main/wv/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=wv
+pkgver=1.2.4
+pkgrel=0
+pkgdesc="MSWord library can load and parse Word 2000, 97, 95 and 6 file formats"
+url="http://sourceforge.net/projects/wvware"
+license="GPL"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libgsf-dev libpng-dev bzip2-dev"
+source="http://downloads.sourceforge.net/sourceforge/wvware/$pkgname-$pkgver.tar.gz"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="c1861c560491f121e12917fa76970ac5 wv-1.2.4.tar.gz"
diff --git a/main/x264/APKBUILD b/main/x264/APKBUILD
new file mode 100644
index 0000000000..2429f146b1
--- /dev/null
+++ b/main/x264/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=x264
+pkgver=20100107
+pkgrel=0
+pkgdesc="free library for encoding H264/AVC video streams"
+url="http://www.videolan.org/developers/x264.html"
+license="GPL"
+depends=
+makedepends="libx11-dev bash"
+subpackages="$pkgname-dev"
+source="http://ftp.videolan.org/pub/videolan/$pkgname/snapshots/$pkgname-snapshot-$pkgver-2245.tar.bz2"
+
+_builddir="$srcdir/$pkgname-snapshot-$pkgver-2245"
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --enable-pthread \
+ --enable-visualize \
+ --enable-shared \
+ --disable-asm \
+ --enable-pic || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install || return 1
+}
+md5sums="58337bf425518cb79dd804bcfd10b7b7 x264-snapshot-20100107-2245.tar.bz2"
diff --git a/main/xarchiver/APKBUILD b/main/xarchiver/APKBUILD
new file mode 100644
index 0000000000..d114f14ca3
--- /dev/null
+++ b/main/xarchiver/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xarchiver
+pkgver=0.5.2
+pkgrel=1
+pkgdesc="GTK+ frontend to various command line archivers"
+url="http://xarchiver.xfce.org/"
+license="GPL"
+depends="desktop-file-utils hicolor-icon-theme tar"
+makedepends="intltool gtk+-dev"
+install=
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2
+ xarchiver-0.5.2-stack-smash.patch"
+
+prepare() {
+ cd "$srcdir/xarchiver-$pkgver"
+ patch -p1 -i "$srcdir"/xarchiver-0.5.2-stack-smash.patch
+}
+
+build() {
+ cd "$srcdir/xarchiver-$pkgver"
+ ./configure --prefix=/usr \
+ --libexecdir=/usr/lib/xfce4 || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir/xarchiver-$pkgver"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="2bc7f06403cc6582dd4a8029ec9d038d xarchiver-0.5.2.tar.bz2
+74cdf6a77e91ac7b02270002c582cea1 xarchiver-0.5.2-stack-smash.patch"
diff --git a/main/xarchiver/xarchiver-0.5.2-stack-smash.patch b/main/xarchiver/xarchiver-0.5.2-stack-smash.patch
new file mode 100644
index 0000000000..66104822ea
--- /dev/null
+++ b/main/xarchiver/xarchiver-0.5.2-stack-smash.patch
@@ -0,0 +1,20 @@
+--- xarchiver-0.5.2-old/src/window.c 2008-11-11 09:31:45.000000000 +0100
++++ xarchiver-0.5.2/src/window.c 2009-01-25 16:26:07.000000000 +0100
+@@ -1447,7 +1447,7 @@
+ GtkTreeIter iter;
+ gint n_elem = 0,pos = 0,dirs = 0;
+ unsigned long int total_size = 0;
+- unsigned long int size = 0;
++ guint64 size = 0;
+ XEntry *entry = NULL;
+
+ path = gtk_tree_path_new_first();
+@@ -1517,7 +1517,7 @@
+ GtkTreeModel *model;
+ gint selected = 0,pos = 0,dirs = 0;
+ unsigned long int total_size = 0;
+- unsigned long int size = 0;
++ guint64 size = 0;
+ XEntry *entry;
+
+ switch (archive->type)
diff --git a/main/xauth/APKBUILD b/main/xauth/APKBUILD
new file mode 100644
index 0000000000..0c16b8701e
--- /dev/null
+++ b/main/xauth/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xauth
+pkgver=1.0.4
+pkgrel=0
+pkgdesc="X.Org authorization settings program"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=
+makedepends="pkgconfig libxau-dev libxext-dev libxmu-dev libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/xauth-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/xauth-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/xauth-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="fa00078c414c4a57cab7a6d89a0c8734 xauth-1.0.4.tar.bz2"
diff --git a/main/xbacklight/APKBUILD b/main/xbacklight/APKBUILD
new file mode 100644
index 0000000000..6c0caaf056
--- /dev/null
+++ b/main/xbacklight/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xbacklight
+pkgver=1.1
+pkgrel=1
+pkgdesc="Sets backlight level using the RandR 1.2 BACKLIGHT output property"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libx11-dev libxrandr-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="51b4a1c0ae2b3bd77417306fd78a3e94 xbacklight-1.1.tar.bz2"
diff --git a/main/xbitmap/APKBUILD b/main/xbitmap/APKBUILD
new file mode 100644
index 0000000000..535572923b
--- /dev/null
+++ b/main/xbitmap/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xbitmaps
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="X.org header files with bitmaps"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends="pkgconfig"
+source="http://xorg.freedesktop.org/releases/individual/data/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="b28a9840cde3c38d7c09716372fea257 xbitmaps-1.0.1.tar.bz2"
diff --git a/main/xcb-proto/APKBUILD b/main/xcb-proto/APKBUILD
new file mode 100644
index 0000000000..b5b6d966f2
--- /dev/null
+++ b/main/xcb-proto/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xcb-proto
+pkgver=1.6
+pkgrel=0
+pkgdesc="XML-XCB protocol descriptions"
+url="http://xcb.freedesktop.org/"
+license="custom"
+depends=
+makedepends="python"
+source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/${pkgname}-${pkgver}
+ make DESTDIR=${pkgdir} install || return 1
+ install -m755 -d ${pkgdir}/usr/share/licenses/${pkgname}
+ install -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
+}
+md5sums="04313e1d914b44d0e457f6c494fc178b xcb-proto-1.6.tar.bz2"
diff --git a/main/xcb-util/APKBUILD b/main/xcb-util/APKBUILD
new file mode 100644
index 0000000000..820a4e1fa5
--- /dev/null
+++ b/main/xcb-util/APKBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xcb-util
+pkgver=0.3.6
+pkgrel=0
+pkgdesc="Utility libraries for XC Binding"
+url="http://xcb.freedesktop.org"
+license="GPL"
+subpackages="$pkgname-dev"
+depends=
+makedepends="m4 libxcb-dev gperf pkgconfig"
+source="http://xcb.freedesktop.org/dist/$pkgname-$pkgver.tar.bz2"
+
+depend_dev="libxcb-dev"
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="dd8968b8ee613cb027a8ef1fcbdc8fc9 xcb-util-0.3.6.tar.bz2"
diff --git a/main/xchat/APKBUILD b/main/xchat/APKBUILD
new file mode 100644
index 0000000000..7f215037a0
--- /dev/null
+++ b/main/xchat/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xchat
+pkgver=2.8.6
+pkgrel=0
+pkgdesc="A GTK+ based IRC client"
+url="http://www.xchat.org/"
+license="GPL"
+makedepends="pkgconfig gtk+-dev openssl-dev dbus-glib-dev xextproto perl-dev"
+source="http://www.$pkgname.org/files/source/2.8/$pkgname-$pkgver.tar.bz2
+ http://www.$pkgname.org/files/source/2.8/patches/xc286-smallfixes.diff
+ $pkgname-gtk2.patch"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p1 < ../xc286-smallfixes.diff || return 1
+ patch -p1 < ../xchat-gtk2.patch || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-openssl \
+ --enable-dbus \
+ --disable-gnome \
+ --disable-textfe \
+ --disable-perl \
+ --disable-python \
+ --enable-ipv6 \
+ --enable-shm \
+ --enable-spell=static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="1f2670865d43a23a9abc596dde999aca xchat-2.8.6.tar.bz2
+eb68b6261bf6740cb5f223627eb8f384 xc286-smallfixes.diff
+f3fe00982c0bec93152ed0b32438ef87 xchat-gtk2.patch"
diff --git a/main/xchat/xchat-gtk2.patch b/main/xchat/xchat-gtk2.patch
new file mode 100644
index 0000000000..4e13a2cf5d
--- /dev/null
+++ b/main/xchat/xchat-gtk2.patch
@@ -0,0 +1,12 @@
+--- xchat-2.8.6/src/fe-gtk/xtext.h.orig 2008-02-24
+05:48:02.000000000 +0100
++++ xchat-2.8.6/src/fe-gtk/xtext.h 2008-09-06
+02:18:39.000000000 +0200
+@@ -270,6 +270,6 @@
+ xtext_buffer *gtk_xtext_buffer_new (GtkXText *xtext);
+ void gtk_xtext_buffer_free (xtext_buffer *buf);
+ void gtk_xtext_buffer_show (GtkXText *xtext, xtext_buffer *buf, int render);
+-GtkType gtk_xtext_get_type (void);
++GType gtk_xtext_get_type (void);
+
+ #endif
diff --git a/main/xcmiscproto/APKBUILD b/main/xcmiscproto/APKBUILD
new file mode 100644
index 0000000000..e01070a771
--- /dev/null
+++ b/main/xcmiscproto/APKBUILD
@@ -0,0 +1,18 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xcmiscproto
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="X11 XC-Miscellaneous extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="7b83e4a7e9f4edc9c6cfb0500f4a7196 xcmiscproto-1.2.0.tar.bz2"
diff --git a/main/xcmsdb/APKBUILD b/main/xcmsdb/APKBUILD
new file mode 100644
index 0000000000..778413b2ac
--- /dev/null
+++ b/main/xcmsdb/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xcmsdb
+pkgver=1.0.2
+pkgrel=0
+pkgdesc="Device Color Characterization utility for X Color Management System"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="7f2bed9f4dd3301d18d83eb296c3be0d xcmsdb-1.0.2.tar.bz2"
diff --git a/main/xdpyinfo/APKBUILD b/main/xdpyinfo/APKBUILD
new file mode 100644
index 0000000000..09f9affcc5
--- /dev/null
+++ b/main/xdpyinfo/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xdpyinfo
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="display information utility for X"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+makedepends="pkgconfig libxtst-dev"
+depends=
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="b7cbab6cbcd12bf7ad65dbc12d86e104 xdpyinfo-1.0.3.tar.bz2"
diff --git a/main/xdriinfo/APKBUILD b/main/xdriinfo/APKBUILD
new file mode 100644
index 0000000000..ff9e76aa6c
--- /dev/null
+++ b/main/xdriinfo/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xdriinfo
+pkgver=1.0.2
+pkgrel=0
+pkgdesc="query configuration information of DRI drivers"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+makedepends="pkgconfig libx11-dev glproto mesa-dev"
+depends=
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="a5ec51ed9f0a55dc3462d90d52ff899c xdriinfo-1.0.2.tar.bz2"
diff --git a/main/xev/APKBUILD b/main/xev/APKBUILD
new file mode 100644
index 0000000000..c30c899aae
--- /dev/null
+++ b/main/xev/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xev
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="print contents of X events"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+makedepends="pkgconfig libx11-dev"
+depends=
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="a9532c3d1683c99bb5df1895cb3a60b1 xev-1.0.3.tar.bz2"
diff --git a/main/xextproto/APKBUILD b/main/xextproto/APKBUILD
new file mode 100644
index 0000000000..7bf3212189
--- /dev/null
+++ b/main/xextproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xextproto
+pkgver=7.1.1
+pkgrel=0
+pkgdesc="X11 various extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR=""$pkgdir"" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="fb6ccaae76db7a35e49b12aea60ca6ff xextproto-7.1.1.tar.bz2"
diff --git a/main/xf86-input-evdev/APKBUILD b/main/xf86-input-evdev/APKBUILD
new file mode 100644
index 0000000000..c7461d3fca
--- /dev/null
+++ b/main/xf86-input-evdev/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-input-evdev
+pkgver=2.3.2
+pkgrel=0
+pkgdesc="X.org evdev input driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev"
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="b2bfe368022eedf2671ee28daba31efc xf86-input-evdev-2.3.2.tar.bz2"
diff --git a/main/xf86-input-keyboard/APKBUILD b/main/xf86-input-keyboard/APKBUILD
new file mode 100644
index 0000000000..4c5fc14f79
--- /dev/null
+++ b/main/xf86-input-keyboard/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-input-keyboard
+pkgver=1.4.0
+pkgrel=1
+pkgdesc="X.org keyboard input driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev"
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="fd17158ffeacecc8cc670604460cb98b xf86-input-keyboard-1.4.0.tar.bz2"
diff --git a/main/xf86-input-mouse/APKBUILD b/main/xf86-input-mouse/APKBUILD
new file mode 100644
index 0000000000..b2aea2bb87
--- /dev/null
+++ b/main/xf86-input-mouse/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-input-mouse
+pkgver=1.5.0
+pkgrel=2
+pkgdesc="X.org mouse input driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev"
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="c58629fddf0782dad5c02da6aeb35521 xf86-input-mouse-1.5.0.tar.bz2"
diff --git a/main/xf86-input-synaptics/APKBUILD b/main/xf86-input-synaptics/APKBUILD
new file mode 100644
index 0000000000..7c4a4b264a
--- /dev/null
+++ b/main/xf86-input-synaptics/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-input-synaptics
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="X.org synaptics input driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig libxkbfile-dev xorg-server-dev libxi-dev libxrandr-dev"
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="29a6f9da5123149e4abc8ff83880ed5c xf86-input-synaptics-1.2.1.tar.bz2"
diff --git a/main/xf86-video-apm/APKBUILD b/main/xf86-video-apm/APKBUILD
new file mode 100644
index 0000000000..ae0582b5ef
--- /dev/null
+++ b/main/xf86-video-apm/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-apm
+pkgver=1.2.2
+pkgrel=1
+pkgdesc="Alliance ProMotion video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="48441a19aaf015570b267f2a8e67d8ab xf86-video-apm-1.2.2.tar.bz2"
diff --git a/main/xf86-video-ark/APKBUILD b/main/xf86-video-ark/APKBUILD
new file mode 100644
index 0000000000..79bb65c0f7
--- /dev/null
+++ b/main/xf86-video-ark/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-ark
+pkgver=0.7.2
+pkgrel=1
+pkgdesc="X.Org driver for ark cards"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org//releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="4745f5c722b030962cc56eb2443894a0 xf86-video-ark-0.7.2.tar.bz2"
diff --git a/main/xf86-video-ast/APKBUILD b/main/xf86-video-ast/APKBUILD
new file mode 100644
index 0000000000..a07d4933f6
--- /dev/null
+++ b/main/xf86-video-ast/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-ast
+pkgver=0.89.9
+pkgrel=0
+pkgdesc="X.Org driver for ASpeedTech cards"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="619f6ff15db869be3800bb001d5b0468 xf86-video-ast-0.89.9.tar.bz2"
diff --git a/main/xf86-video-ati/APKBUILD b/main/xf86-video-ati/APKBUILD
new file mode 100644
index 0000000000..5037b2405b
--- /dev/null
+++ b/main/xf86-video-ati/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-ati
+pkgver=6.12.4
+pkgrel=1
+pkgdesc="ATI video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="mesa-dri-ati"
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto libdrm-dev xf86driproto glproto mesa-dev
+ xineramaproto
+ "
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+
+ ./configure --prefix=/usr \
+ --enable-dri \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="e662348f6f957fcedf52818d668ab9f5 xf86-video-ati-6.12.4.tar.bz2"
diff --git a/main/xf86-video-chips/APKBUILD b/main/xf86-video-chips/APKBUILD
new file mode 100644
index 0000000000..74c98f96fe
--- /dev/null
+++ b/main/xf86-video-chips/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-chips
+pkgver=1.2.2
+pkgrel=0
+pkgdesc="Chips and Technologies video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="a3969c28c3b36ab2caa852a9324e9b70 xf86-video-chips-1.2.2.tar.bz2"
diff --git a/main/xf86-video-cirrus/APKBUILD b/main/xf86-video-cirrus/APKBUILD
new file mode 100644
index 0000000000..6b708a28a1
--- /dev/null
+++ b/main/xf86-video-cirrus/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-cirrus
+pkgver=1.3.2
+pkgrel=1
+pkgdesc="Cirrus Logic video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="8195d03ed0be0975c03441e66a9f53b3 xf86-video-cirrus-1.3.2.tar.bz2"
diff --git a/main/xf86-video-dummy/APKBUILD b/main/xf86-video-dummy/APKBUILD
new file mode 100644
index 0000000000..b8f5570fd6
--- /dev/null
+++ b/main/xf86-video-dummy/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-dummy
+pkgver=0.3.3
+pkgrel=0
+pkgdesc="X.Org driver for dummy cards"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto xf86dgaproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="3ffe3a28f4452e66bf56180e7da9cbc5 xf86-video-dummy-0.3.3.tar.bz2"
diff --git a/main/xf86-video-fbdev/APKBUILD b/main/xf86-video-fbdev/APKBUILD
new file mode 100644
index 0000000000..9a201e9a5c
--- /dev/null
+++ b/main/xf86-video-fbdev/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-fbdev
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="video driver for framebuffer device"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="79ce1eb9f9d2ed56de70d8e06cb767d9 xf86-video-fbdev-0.4.1.tar.bz2"
diff --git a/main/xf86-video-geode/APKBUILD b/main/xf86-video-geode/APKBUILD
new file mode 100644
index 0000000000..2ef39bf4dc
--- /dev/null
+++ b/main/xf86-video-geode/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-geode
+pkgver=2.11.6
+pkgrel=1
+pkgdesc="AMD Geode GX and LX video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto xf86dgaproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="3ff0dfb4b3bd8872c6efb70371cb6b98 xf86-video-geode-2.11.6.tar.bz2"
diff --git a/main/xf86-video-glint/APKBUILD b/main/xf86-video-glint/APKBUILD
new file mode 100644
index 0000000000..983b820151
--- /dev/null
+++ b/main/xf86-video-glint/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-glint
+pkgver=1.2.4
+pkgrel=1
+pkgdesc="GLINT/Permedia video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto xf86dgaproto glproto libdrm-dev xf86driproto
+ mesa-dev"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="960df34e129faa411e58c0d6b56d79a3 xf86-video-glint-1.2.4.tar.bz2"
diff --git a/main/xf86-video-i128/APKBUILD b/main/xf86-video-i128/APKBUILD
new file mode 100644
index 0000000000..5374446fad
--- /dev/null
+++ b/main/xf86-video-i128/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-i128
+pkgver=1.3.3
+pkgrel=1
+pkgdesc="Number 9 I128 video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="a597e8efeec6ab8bc6ba6d87fceb2dba xf86-video-i128-1.3.3.tar.bz2"
diff --git a/main/xf86-video-i740/APKBUILD b/main/xf86-video-i740/APKBUILD
new file mode 100644
index 0000000000..fe8db4e600
--- /dev/null
+++ b/main/xf86-video-i740/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-i740
+pkgver=1.3.2
+pkgrel=1
+pkgdesc="Intel i740 video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="4ac1318788f62159965f15131c869e7a xf86-video-i740-1.3.2.tar.bz2"
diff --git a/main/xf86-video-intel/APKBUILD b/main/xf86-video-intel/APKBUILD
new file mode 100644
index 0000000000..e922c388a2
--- /dev/null
+++ b/main/xf86-video-intel/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-intel
+pkgver=2.9.1
+pkgrel=1
+pkgdesc="X.Org driver for Intel cards"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="mesa-dri-intel"
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto glproto xineramaproto libdrm-dev xf86driproto
+ mesa-dev"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="8951d0366c16991badb7f9050556f4f3 xf86-video-intel-2.9.1.tar.bz2"
diff --git a/main/xf86-video-mach64/APKBUILD b/main/xf86-video-mach64/APKBUILD
new file mode 100644
index 0000000000..ab361df528
--- /dev/null
+++ b/main/xf86-video-mach64/APKBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-mach64
+pkgver=6.8.2
+pkgrel=1
+pkgdesc="ATI Mach64 video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="mesa-dri-mach64"
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto xineramaproto libdrm-dev xf86driproto glproto
+ mesa-dev
+ "
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="6c0522b2b72a0a47c48d718443616651 xf86-video-mach64-6.8.2.tar.bz2"
diff --git a/main/xf86-video-newport/APKBUILD b/main/xf86-video-newport/APKBUILD
new file mode 100644
index 0000000000..bdf2f1e113
--- /dev/null
+++ b/main/xf86-video-newport/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-newport
+pkgver=0.2.3
+pkgrel=0
+pkgdesc="Newport video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="923baa1ee0429f03ed19ec0be6a4f62b xf86-video-newport-0.2.3.tar.bz2"
diff --git a/main/xf86-video-nv/APKBUILD b/main/xf86-video-nv/APKBUILD
new file mode 100644
index 0000000000..7dfa8e14ea
--- /dev/null
+++ b/main/xf86-video-nv/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-nv
+pkgver=2.1.15
+pkgrel=1
+pkgdesc="Nvidia video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="1b22188bd9012a148206940708b52ea6 xf86-video-nv-2.1.15.tar.bz2"
diff --git a/main/xf86-video-openchrome/APKBUILD b/main/xf86-video-openchrome/APKBUILD
new file mode 100644
index 0000000000..f5b944c1e1
--- /dev/null
+++ b/main/xf86-video-openchrome/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-openchrome
+pkgver=0.2.904
+pkgrel=1
+pkgdesc="X.Org driver for VIA/S3G cards"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev libxvmc-dev fontsproto glproto
+ randrproto videoproto renderproto xf86driproto mesa-dev
+ "
+
+source="http://www.openchrome.org/releases/xf86-video-openchrome-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="f2481d98ef54febf5bffbb88a2a2426d xf86-video-openchrome-0.2.904.tar.bz2"
diff --git a/main/xf86-video-r128/APKBUILD b/main/xf86-video-r128/APKBUILD
new file mode 100644
index 0000000000..ffceb6ff9e
--- /dev/null
+++ b/main/xf86-video-r128/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-r128
+pkgver=6.8.1
+pkgrel=2
+pkgdesc="ATI Rage128 video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="mesa-dri-r128"
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto xineramaproto libdrm-dev xf86driproto glproto
+ mesa-dev expat-dev
+ "
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr \
+ --enable-dri \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="2b90854a62a4d45d652062f582dc8d13 xf86-video-r128-6.8.1.tar.bz2"
diff --git a/main/xf86-video-radeonhd/APKBUILD b/main/xf86-video-radeonhd/APKBUILD
new file mode 100644
index 0000000000..ebdba8c5b3
--- /dev/null
+++ b/main/xf86-video-radeonhd/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-radeonhd
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="Experimental Radeon HD video driver."
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="7b6641aa9d836f1621b9b220ad6771b8 xf86-video-radeonhd-1.3.0.tar.bz2"
diff --git a/main/xf86-video-rendition/APKBUILD b/main/xf86-video-rendition/APKBUILD
new file mode 100644
index 0000000000..6722882484
--- /dev/null
+++ b/main/xf86-video-rendition/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-rendition
+pkgver=4.2.3
+pkgrel=1
+pkgdesc="Rendition video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="9a0a916fe1e7b5c81cd4c80a08e646cc xf86-video-rendition-4.2.3.tar.bz2"
diff --git a/main/xf86-video-s3/APKBUILD b/main/xf86-video-s3/APKBUILD
new file mode 100644
index 0000000000..03f54d2385
--- /dev/null
+++ b/main/xf86-video-s3/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-s3
+pkgver=0.6.3
+pkgrel=1
+pkgdesc="X.Org driver for s3 cards"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org//releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="5eb06d88533fb327d067928faeb20860 xf86-video-s3-0.6.3.tar.bz2"
diff --git a/main/xf86-video-s3virge/APKBUILD b/main/xf86-video-s3virge/APKBUILD
new file mode 100644
index 0000000000..f00b0a4132
--- /dev/null
+++ b/main/xf86-video-s3virge/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-s3virge
+pkgver=1.10.4
+pkgrel=0
+pkgdesc="S3 ViRGE video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="6517bbbf808c700502d51acdc44662f8 xf86-video-s3virge-1.10.4.tar.bz2"
diff --git a/main/xf86-video-savage/APKBUILD b/main/xf86-video-savage/APKBUILD
new file mode 100644
index 0000000000..e9a6d740ec
--- /dev/null
+++ b/main/xf86-video-savage/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-savage
+pkgver=2.3.1
+pkgrel=1
+pkgdesc="S3 Savage video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="mesa-dri-savage"
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto libdrm-dev xf86driproto mesa-dev glproto
+ "
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="66c319f610e3699c3de0f3ef630abb32 xf86-video-savage-2.3.1.tar.bz2"
diff --git a/main/xf86-video-siliconmotion/APKBUILD b/main/xf86-video-siliconmotion/APKBUILD
new file mode 100644
index 0000000000..52d91be125
--- /dev/null
+++ b/main/xf86-video-siliconmotion/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-siliconmotion
+pkgver=1.7.3
+pkgrel=1
+pkgdesc="Silicon Motion video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="29fb322cd3adab52cc7f1ac86f9315bb xf86-video-siliconmotion-1.7.3.tar.bz2"
diff --git a/main/xf86-video-sis/APKBUILD b/main/xf86-video-sis/APKBUILD
new file mode 100644
index 0000000000..ad3589a3ef
--- /dev/null
+++ b/main/xf86-video-sis/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-sis
+pkgver=0.10.2
+pkgrel=0
+pkgdesc="X.org SiS video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev videoproto renderproto xproto
+ fontsproto xf86dgaproto xineramaproto randrproto xextproto mesa-dev
+ xf86driproto glproto libxi-dev"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
+ fix-bios-read-on-650-760.patch"
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -Np1 -i "$srcdir/fix-bios-read-on-650-760.patch" || return 1
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="f04baa307e49e9f0e5a5c3d2e89a5576 xf86-video-sis-0.10.2.tar.bz2
+827d289307badeae3778180ab19b7363 fix-bios-read-on-650-760.patch"
diff --git a/main/xf86-video-sis/fix-bios-read-on-650-760.patch b/main/xf86-video-sis/fix-bios-read-on-650-760.patch
new file mode 100644
index 0000000000..c948c833a8
--- /dev/null
+++ b/main/xf86-video-sis/fix-bios-read-on-650-760.patch
@@ -0,0 +1,23 @@
+From 8370499d4035ec7a5c8e1f1b04d5a6c404883442 Mon Sep 17 00:00:00 2001
+From: Matteo Delfino <kendatsuba@gmail.com>
+Date: Wed, 21 Oct 2009 14:26:45 +0000
+Subject: Fix BIOS read on 650 and 760. (#19070)
+
+Signed-off-by: Matteo Delfino <kendatsuba@gmail.com>
+Signed-off-by: Adam Jackson <ajax@redhat.com>
+---
+diff --git a/src/sis_driver.c b/src/sis_driver.c
+index 994b02d..b19e7a9 100644
+--- a/src/sis_driver.c
++++ b/src/sis_driver.c
+@@ -4099,6 +4099,8 @@ SISPreInit(ScrnInfoPtr pScrn, int flags)
+ case SIS_315H:
+ case SIS_330:
+ case SIS_340:
++ case SIS_650:
++ case SIS_760:
+ case XGI_40: readpci = TRUE;
+ break;
+ case XGI_20: readpci = TRUE;
+--
+cgit v0.8.2
diff --git a/main/xf86-video-sunffb/APKBUILD b/main/xf86-video-sunffb/APKBUILD
new file mode 100644
index 0000000000..e6a566d199
--- /dev/null
+++ b/main/xf86-video-sunffb/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-sunffb
+pkgver=1.2.1
+pkgrel=0
+pkgdesc="SUNFFB video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="mesa-dri-ffb"
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto libdrm-dev xf86driproto glproto mesa-dev
+ xineramaproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="1bb374fe5ab3ed780d353b2b12ba6255 xf86-video-sunffb-1.2.1.tar.bz2"
diff --git a/main/xf86-video-sunleo/APKBUILD b/main/xf86-video-sunleo/APKBUILD
new file mode 100644
index 0000000000..b6898904b7
--- /dev/null
+++ b/main/xf86-video-sunleo/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-sunleo
+pkgver=1.2.0
+pkgrel=2
+pkgdesc="Leo video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="14fe008620940a674981912fa02ae133 xf86-video-sunleo-1.2.0.tar.bz2"
diff --git a/main/xf86-video-tdfx/APKBUILD b/main/xf86-video-tdfx/APKBUILD
new file mode 100644
index 0000000000..2da071fd5a
--- /dev/null
+++ b/main/xf86-video-tdfx/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-tdfx
+pkgver=1.4.3
+pkgrel=1
+pkgdesc="3Dfx video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="mesa-dri-tdfx"
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto libdrm-dev xf86driproto mesa-dev glproto
+ "
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="8161bbf2b100c21b609163f0010766b3 xf86-video-tdfx-1.4.3.tar.bz2"
diff --git a/main/xf86-video-tseng/APKBUILD b/main/xf86-video-tseng/APKBUILD
new file mode 100644
index 0000000000..c924a7c373
--- /dev/null
+++ b/main/xf86-video-tseng/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-tseng
+pkgver=1.2.3
+pkgrel=1
+pkgdesc="Tseng Labs video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="79f63999c88477801ae54dc486272ad6 xf86-video-tseng-1.2.3.tar.bz2"
diff --git a/main/xf86-video-v4l/APKBUILD b/main/xf86-video-v4l/APKBUILD
new file mode 100644
index 0000000000..42c658b358
--- /dev/null
+++ b/main/xf86-video-v4l/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-v4l
+pkgver=0.2.0
+pkgrel=2
+pkgdesc="video4linux driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="2251ae2a0a905764941cd7b098e85ad1 xf86-video-v4l-0.2.0.tar.bz2"
diff --git a/main/xf86-video-vesa/APKBUILD b/main/xf86-video-vesa/APKBUILD
new file mode 100644
index 0000000000..e2cd29d5fc
--- /dev/null
+++ b/main/xf86-video-vesa/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-vesa
+pkgver=2.2.1
+pkgrel=1
+pkgdesc="X.org vesa video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev libxi-dev fontsproto randrproto
+ videoproto renderproto"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="61a1dc9a22991bd04d0ff98f800775c1 xf86-video-vesa-2.2.1.tar.bz2"
diff --git a/main/xf86-video-vmware/APKBUILD b/main/xf86-video-vmware/APKBUILD
new file mode 100644
index 0000000000..bd979907df
--- /dev/null
+++ b/main/xf86-video-vmware/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86-video-vmware
+pkgver=10.16.9
+pkgrel=0
+pkgdesc="X.org VMWare video driver"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig xorg-server-dev videoproto renderproto xproto
+ fontsproto xf86dgaproto xineramaproto randrproto xextproto libxi-dev"
+
+source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
+ abi2.patch"
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -Np1 -i "$srcdir/abi2.patch" || return 1
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="3b3d38abfa1f8be4b1e26dcd236bc94f xf86-video-vmware-10.16.9.tar.bz2
+cbc8e0bef13ccec7ceac233cd09233da abi2.patch"
diff --git a/main/xf86-video-vmware/abi2.patch b/main/xf86-video-vmware/abi2.patch
new file mode 100644
index 0000000000..29e8ddeb19
--- /dev/null
+++ b/main/xf86-video-vmware/abi2.patch
@@ -0,0 +1,38 @@
+diff -up xf86-video-vmware-10.16.7/src/vmware.c.jx xf86-video-vmware-10.16.7/src/vmware.c
+--- xf86-video-vmware-10.16.7/src/vmware.c.jx 2009-08-07 16:31:33.000000000 -0400
++++ xf86-video-vmware-10.16.7/src/vmware.c 2009-08-07 16:32:10.000000000 -0400
+@@ -640,8 +640,6 @@ VMWAREPreInit(ScrnInfoPtr pScrn, int fla
+ return FALSE;
+ }
+
+- xf86LoaderReqSymLists(vgahwSymbols, NULL);
+-
+ if (!vgaHWGetHWRec(pScrn)) {
+ return FALSE;
+ }
+@@ -959,7 +957,6 @@ VMWAREPreInit(ScrnInfoPtr pScrn, int fla
+ VMWAREFreeRec(pScrn);
+ return FALSE;
+ }
+- xf86LoaderReqSymLists(fbSymbols, shadowfbSymbols, NULL);
+
+ /* Need ramdac for hwcursor */
+ if (pVMWARE->hwCursor) {
+@@ -967,7 +964,6 @@ VMWAREPreInit(ScrnInfoPtr pScrn, int fla
+ VMWAREFreeRec(pScrn);
+ return FALSE;
+ }
+- xf86LoaderReqSymLists(ramdacSymbols, NULL);
+ }
+
+ return TRUE;
+@@ -2051,9 +2047,6 @@ vmwareSetup(pointer module, pointer opts
+ setupDone = TRUE;
+ xf86AddDriver(&VMWARE, module, VMWARE_DRIVER_FUNC);
+
+- LoaderRefSymLists(vgahwSymbols, fbSymbols, ramdacSymbols,
+- shadowfbSymbols, NULL);
+-
+ return (pointer)1;
+ }
+ if (errmaj) {
diff --git a/main/xf86bigfontproto/APKBUILD b/main/xf86bigfontproto/APKBUILD
new file mode 100644
index 0000000000..dd4eef5540
--- /dev/null
+++ b/main/xf86bigfontproto/APKBUILD
@@ -0,0 +1,18 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86bigfontproto
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="X11 Big Fonts extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="120e226ede5a4687b25dd357cc9b8efe xf86bigfontproto-1.2.0.tar.bz2"
diff --git a/main/xf86dgaproto/APKBUILD b/main/xf86dgaproto/APKBUILD
new file mode 100644
index 0000000000..71066c92c1
--- /dev/null
+++ b/main/xf86dgaproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86dgaproto
+pkgver=2.1
+pkgrel=0
+pkgdesc="X11 Direct Graphics Access extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="a036dc2fcbf052ec10621fd48b68dbb1 xf86dgaproto-2.1.tar.bz2"
diff --git a/main/xf86driproto/APKBUILD b/main/xf86driproto/APKBUILD
new file mode 100644
index 0000000000..045dfe32c5
--- /dev/null
+++ b/main/xf86driproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86driproto
+pkgver=2.1.0
+pkgrel=0
+pkgdesc="X11 DRI extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="309d552732666c3333d7dc63e80d042f xf86driproto-2.1.0.tar.bz2"
diff --git a/main/xf86miscproto/APKBUILD b/main/xf86miscproto/APKBUILD
new file mode 100644
index 0000000000..e90b32db7b
--- /dev/null
+++ b/main/xf86miscproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86miscproto
+pkgver=0.9.3
+pkgrel=0
+pkgdesc="X11 XFree86-Miscellaneous extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="ca63bbb31cf5b7f37b2237e923ff257a xf86miscproto-0.9.3.tar.bz2"
diff --git a/main/xf86vidmodeproto/APKBUILD b/main/xf86vidmodeproto/APKBUILD
new file mode 100644
index 0000000000..05c50e3c42
--- /dev/null
+++ b/main/xf86vidmodeproto/APKBUILD
@@ -0,0 +1,18 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xf86vidmodeproto
+pkgver=2.3
+pkgrel=0
+pkgdesc="X11 Video Mode extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="4434894fc7d4eeb4a22e6b876d56fdaa xf86vidmodeproto-2.3.tar.bz2"
diff --git a/main/xfce-utils/APKBUILD b/main/xfce-utils/APKBUILD
new file mode 100644
index 0000000000..c702096d9e
--- /dev/null
+++ b/main/xfce-utils/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce-utils
+pkgver=4.6.1
+pkgrel=1
+pkgdesc="Utilities for Xfce"
+url="http://www.xfce.org/"
+license="GPL2"
+subpackages=
+depends="hicolor-icon-theme"
+makedepends="pkgconfig libxfcegui4-dev intltool gettext-dev libiconv-dev
+ libsm-dev expat-dev e2fsprogs-dev"
+install=
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ sed -i -e "s/share\/xsessions/sessions/g" Makefile.in || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static \
+ --with-xsession-prefix=/etc/X11/
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="1aa2362b11e79e56d52ce0d265faf1b6 xfce-utils-4.6.1.tar.bz2"
diff --git a/main/xfce4-appfinder/APKBUILD b/main/xfce4-appfinder/APKBUILD
new file mode 100644
index 0000000000..6f9f6a19ac
--- /dev/null
+++ b/main/xfce4-appfinder/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-appfinder
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="Xfce application finder"
+url="http://www.xfce.org/"
+license="GPL-2"
+depends="hicolor-icon-theme"
+makedepends="pkgconfig thunar-dev libxfce4menu-dev intltool gtk+-dev
+ libxfce4util-dev libxfcegui4-dev gettext-dev libiconv-dev
+ startup-notification-dev libsm-dev expat-dev e2fsprogs-dev"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="a1bc7d88100cfd92714a300be531589b xfce4-appfinder-4.6.1.tar.bz2
+db51db79681eadc47be4932355a77c25 xfce4-appfinder.post-install
+db51db79681eadc47be4932355a77c25 xfce4-appfinder.post-upgrade
+db51db79681eadc47be4932355a77c25 xfce4-appfinder.post-deinstall"
diff --git a/main/xfce4-appfinder/xfce4-appfinder.post-deinstall b/main/xfce4-appfinder/xfce4-appfinder.post-deinstall
new file mode 120000
index 0000000000..18abfee4f8
--- /dev/null
+++ b/main/xfce4-appfinder/xfce4-appfinder.post-deinstall
@@ -0,0 +1 @@
+xfce4-appfinder.post-install \ No newline at end of file
diff --git a/main/xfce4-appfinder/xfce4-appfinder.post-install b/main/xfce4-appfinder/xfce4-appfinder.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfce4-appfinder/xfce4-appfinder.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfce4-appfinder/xfce4-appfinder.post-upgrade b/main/xfce4-appfinder/xfce4-appfinder.post-upgrade
new file mode 120000
index 0000000000..18abfee4f8
--- /dev/null
+++ b/main/xfce4-appfinder/xfce4-appfinder.post-upgrade
@@ -0,0 +1 @@
+xfce4-appfinder.post-install \ No newline at end of file
diff --git a/main/xfce4-battery-plugin/APKBUILD b/main/xfce4-battery-plugin/APKBUILD
new file mode 100644
index 0000000000..c0b271cff6
--- /dev/null
+++ b/main/xfce4-battery-plugin/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-battery-plugin
+pkgver=0.5.1
+pkgrel=0
+pkgdesc="A battery monitor plugin for the Xfce panel"
+url="http://goodies.xfce.org/projects/panel-plugins/xfce4-battery-plugin"
+license="GPL-2"
+makedepends="xfce4-panel-dev libxfcegui4-dev perl-xml-parser intltool"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+source="http://goodies.xfce.org/releases/$pkgname/$pkgname-$pkgver.tar.bz2
+ compile_x86_64.diff
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -Np1 -i "$srcdir"/compile_x86_64.diff || return 1
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install
+}
+md5sums="d8a666d85bb3c1dd007b547de4dd7037 xfce4-battery-plugin-0.5.1.tar.bz2
+d9a927bca032e9b10a04046c154243a1 compile_x86_64.diff
+db51db79681eadc47be4932355a77c25 xfce4-battery-plugin.post-install
+db51db79681eadc47be4932355a77c25 xfce4-battery-plugin.post-upgrade
+db51db79681eadc47be4932355a77c25 xfce4-battery-plugin.post-deinstall"
diff --git a/main/xfce4-battery-plugin/compile_x86_64.diff b/main/xfce4-battery-plugin/compile_x86_64.diff
new file mode 100644
index 0000000000..102db1d956
--- /dev/null
+++ b/main/xfce4-battery-plugin/compile_x86_64.diff
@@ -0,0 +1,13 @@
+--- xfce4-battery-plugin-0.5.0/panel-plugin/libapm.h.orig 2008-03-18 20:10:58.000000000 +0100
++++ xfce4-battery-plugin-0.5.0/panel-plugin/libapm.h 2008-03-18 20:14:45.000000000 +0100
+@@ -17,8 +17,8 @@
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+-#include <linux/apm_bios.h>
+ #include <sys/types.h>
++#include <linux/apm_bios.h>
+
+ #define APM_PROC "/proc/apm"
+ #define APM_DEVICE "/dev/apm_bios"
+
diff --git a/main/xfce4-battery-plugin/xfce4-battery-plugin.post-deinstall b/main/xfce4-battery-plugin/xfce4-battery-plugin.post-deinstall
new file mode 120000
index 0000000000..ffd189d10c
--- /dev/null
+++ b/main/xfce4-battery-plugin/xfce4-battery-plugin.post-deinstall
@@ -0,0 +1 @@
+xfce4-battery-plugin.post-install \ No newline at end of file
diff --git a/main/xfce4-battery-plugin/xfce4-battery-plugin.post-install b/main/xfce4-battery-plugin/xfce4-battery-plugin.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfce4-battery-plugin/xfce4-battery-plugin.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfce4-battery-plugin/xfce4-battery-plugin.post-upgrade b/main/xfce4-battery-plugin/xfce4-battery-plugin.post-upgrade
new file mode 120000
index 0000000000..ffd189d10c
--- /dev/null
+++ b/main/xfce4-battery-plugin/xfce4-battery-plugin.post-upgrade
@@ -0,0 +1 @@
+xfce4-battery-plugin.post-install \ No newline at end of file
diff --git a/main/xfce4-cpufreq-plugin/APKBUILD b/main/xfce4-cpufreq-plugin/APKBUILD
new file mode 100644
index 0000000000..4f134440ae
--- /dev/null
+++ b/main/xfce4-cpufreq-plugin/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-cpufreq-plugin
+pkgver=0.0.1
+pkgrel=0
+pkgdesc="CPU frequency plugin for the Xfce4 panel"
+url="http://goodies.xfce.org/projects/panel-plugins/xfce4-cpufreq-plugin"
+license="GPL2"
+depends=
+makedepends="pkgconfig xfce4-panel-dev intltool libsm-dev"
+install=
+source="http://goodies.xfce.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$srcdir"/xfce4-cpu-freq-plugin-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/xfce4-cpu-freq-plugin-$pkgver
+ make DESTDIR="$pkgdir" install
+}
+md5sums="7ad41541d8065aab941de7d62857aa8b xfce4-cpufreq-plugin-0.0.1.tar.gz"
diff --git a/main/xfce4-dev-tools/APKBUILD b/main/xfce4-dev-tools/APKBUILD
new file mode 100644
index 0000000000..80ca610d75
--- /dev/null
+++ b/main/xfce4-dev-tools/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-dev-tools
+pkgver=4.6.0
+pkgrel=2
+pkgdesc="Xfce developer tools"
+url="http://www.xfce.org/"
+license="GPL2"
+depends="automake autoconf make intltool pkgconfig gtk-doc"
+makedepends=
+source="http://mocha.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ # bug in autoconf install which not explicit set -m755
+ chmod 755 "$pkgdir"/usr/bin/*
+}
+
+md5sums="c9587fa78e877eee858a33391d0afd62 xfce4-dev-tools-4.6.0.tar.bz2"
diff --git a/main/xfce4-mixer/APKBUILD b/main/xfce4-mixer/APKBUILD
new file mode 100644
index 0000000000..1541cb92be
--- /dev/null
+++ b/main/xfce4-mixer/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-mixer
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="The volume control plugin for the Xfce panel"
+url="http://www.xfce.org/"
+license="GPL2"
+depends="hicolor-icon-theme"
+makedepends="pkgconfig xfce4-panel-dev gstreamer-dev intltool
+ gst-plugins-base-dev expat-dev libsm-dev e2fsprogs-dev"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static \
+ --with-sound=alsa || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="a99e2455445480ef5081fe69454a46fc xfce4-mixer-4.6.1.tar.bz2
+db51db79681eadc47be4932355a77c25 xfce4-mixer.post-install
+db51db79681eadc47be4932355a77c25 xfce4-mixer.post-upgrade
+db51db79681eadc47be4932355a77c25 xfce4-mixer.post-deinstall"
diff --git a/main/xfce4-mixer/xfce4-mixer.post-deinstall b/main/xfce4-mixer/xfce4-mixer.post-deinstall
new file mode 120000
index 0000000000..59bfac9d75
--- /dev/null
+++ b/main/xfce4-mixer/xfce4-mixer.post-deinstall
@@ -0,0 +1 @@
+xfce4-mixer.post-install \ No newline at end of file
diff --git a/main/xfce4-mixer/xfce4-mixer.post-install b/main/xfce4-mixer/xfce4-mixer.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfce4-mixer/xfce4-mixer.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfce4-mixer/xfce4-mixer.post-upgrade b/main/xfce4-mixer/xfce4-mixer.post-upgrade
new file mode 120000
index 0000000000..59bfac9d75
--- /dev/null
+++ b/main/xfce4-mixer/xfce4-mixer.post-upgrade
@@ -0,0 +1 @@
+xfce4-mixer.post-install \ No newline at end of file
diff --git a/main/xfce4-notifyd/APKBUILD b/main/xfce4-notifyd/APKBUILD
new file mode 100644
index 0000000000..717b68470d
--- /dev/null
+++ b/main/xfce4-notifyd/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-notifyd
+pkgver=0.1.0
+pkgrel=0
+pkgdesc="notification daemon for the xfce desktop"
+url="http://spuriousinterrupt.org/projects/xfce4-notifyd"
+license="GPL2"
+depends="hicolor-icon-theme"
+makedepends="gtk+-dev libxfce4util libxfcegui4-dev libsexy-dev xfconf-dev
+ dbus-glib-dev libglade-dev intltool"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+source="http://spuriousinterrupt.org/files/$pkgname/$pkgname-$pkgver.tar.bz2
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/xfce4 --localstatedir=/var --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="659ecaf37f0f7ee9e31f7b25f9813778 xfce4-notifyd-0.1.0.tar.bz2
+db51db79681eadc47be4932355a77c25 xfce4-notifyd.post-install
+db51db79681eadc47be4932355a77c25 xfce4-notifyd.post-upgrade
+db51db79681eadc47be4932355a77c25 xfce4-notifyd.post-deinstall"
diff --git a/main/xfce4-notifyd/xfce4-notifyd.post-deinstall b/main/xfce4-notifyd/xfce4-notifyd.post-deinstall
new file mode 120000
index 0000000000..2aa65d32eb
--- /dev/null
+++ b/main/xfce4-notifyd/xfce4-notifyd.post-deinstall
@@ -0,0 +1 @@
+xfce4-notifyd.post-install \ No newline at end of file
diff --git a/main/xfce4-notifyd/xfce4-notifyd.post-install b/main/xfce4-notifyd/xfce4-notifyd.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfce4-notifyd/xfce4-notifyd.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfce4-notifyd/xfce4-notifyd.post-upgrade b/main/xfce4-notifyd/xfce4-notifyd.post-upgrade
new file mode 120000
index 0000000000..2aa65d32eb
--- /dev/null
+++ b/main/xfce4-notifyd/xfce4-notifyd.post-upgrade
@@ -0,0 +1 @@
+xfce4-notifyd.post-install \ No newline at end of file
diff --git a/main/xfce4-panel/APKBUILD b/main/xfce4-panel/APKBUILD
new file mode 100644
index 0000000000..1124c83069
--- /dev/null
+++ b/main/xfce4-panel/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-panel
+pkgver=4.6.3
+pkgrel=0
+pkgdesc="Panel for the Xfce desktop environment"
+url="http://www.xfce.org/"
+license="GPL-2"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="hicolor-icon-theme"
+makedepends="pkgconfig libxfcegui4-dev exo-dev libwnck-dev intltool gettext-dev
+ libiconv-dev expat-dev libsm-dev libice-dev startup-notification-dev
+ e2fsprogs zlib-dev"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+source="http://archive.xfce.org/src/xfce/$pkgname/4.6/$pkgname-$pkgver.tar.bz2"
+depends_dev="libxfce4util-dev libxfcegui4-dev"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="0b715abb929220f136483ccd7303ff62 xfce4-panel-4.6.3.tar.bz2"
diff --git a/main/xfce4-panel/xfce4-panel.post-deinstall b/main/xfce4-panel/xfce4-panel.post-deinstall
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfce4-panel/xfce4-panel.post-deinstall
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfce4-panel/xfce4-panel.post-install b/main/xfce4-panel/xfce4-panel.post-install
new file mode 100644
index 0000000000..4a602f0b54
--- /dev/null
+++ b/main/xfce4-panel/xfce4-panel.post-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
+exit 0
diff --git a/main/xfce4-panel/xfce4-panel.post-upgrade b/main/xfce4-panel/xfce4-panel.post-upgrade
new file mode 120000
index 0000000000..3c863ae3d6
--- /dev/null
+++ b/main/xfce4-panel/xfce4-panel.post-upgrade
@@ -0,0 +1 @@
+xfce4-panel.post-install \ No newline at end of file
diff --git a/main/xfce4-screenshooter/APKBUILD b/main/xfce4-screenshooter/APKBUILD
new file mode 100644
index 0000000000..cde73790c2
--- /dev/null
+++ b/main/xfce4-screenshooter/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-screenshooter
+pkgver=1.6.0
+pkgrel=0
+pkgdesc="screenshot application for Xfce4"
+url="http://goodies.xfce.org/projects/applications/xfce4-screenshooter"
+license="GPL2"
+subpackages="$pkgname-doc"
+depends=
+makedepends="xfce4-panel-dev intltool hicolor-icon-theme libsm-dev
+ e2fsprogs-dev"
+install="xfce4-screenshooter.post-install xfce4-screenshooter.post-upgrade
+ xfce4-screenshooter.post-deinstall"
+source="http://goodies.xfce.org/releases/$pkgname/$pkgname-$pkgver.tar.gz
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="331750879b966eec639eb3fe3045cb16 xfce4-screenshooter-1.6.0.tar.gz
+db51db79681eadc47be4932355a77c25 xfce4-screenshooter.post-install
+db51db79681eadc47be4932355a77c25 xfce4-screenshooter.post-upgrade
+db51db79681eadc47be4932355a77c25 xfce4-screenshooter.post-deinstall"
diff --git a/main/xfce4-screenshooter/xfce4-screenshooter.post-deinstall b/main/xfce4-screenshooter/xfce4-screenshooter.post-deinstall
new file mode 120000
index 0000000000..735306e31d
--- /dev/null
+++ b/main/xfce4-screenshooter/xfce4-screenshooter.post-deinstall
@@ -0,0 +1 @@
+xfce4-screenshooter.post-install \ No newline at end of file
diff --git a/main/xfce4-screenshooter/xfce4-screenshooter.post-install b/main/xfce4-screenshooter/xfce4-screenshooter.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfce4-screenshooter/xfce4-screenshooter.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfce4-screenshooter/xfce4-screenshooter.post-upgrade b/main/xfce4-screenshooter/xfce4-screenshooter.post-upgrade
new file mode 120000
index 0000000000..735306e31d
--- /dev/null
+++ b/main/xfce4-screenshooter/xfce4-screenshooter.post-upgrade
@@ -0,0 +1 @@
+xfce4-screenshooter.post-install \ No newline at end of file
diff --git a/main/xfce4-session/APKBUILD b/main/xfce4-session/APKBUILD
new file mode 100644
index 0000000000..a7c42b9b1d
--- /dev/null
+++ b/main/xfce4-session/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-session
+pkgver=4.6.1
+pkgrel=1
+pkgdesc="A session manager for Xfce"
+url="http://www.xfce.org/"
+license="GPL2"
+subpackages="$pkgname-dev $pkgname-doc"
+makedepends="pkgconfig libxfcegui4-dev libwnck-dev libglade-dev intltool
+ gettext-dev libiconv-dev iceauth libice-dev libsm-dev expat-dev
+ e2fsprogs-dev zlib-dev"
+depends="hicolor-icon-theme"
+install=
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2
+ busybox-shutdown.patch"
+
+depends_dev="libxfcegui4-dev xfconf-dev"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p1 -i ../busybox-shutdown.patch || return 1
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-legacy-sm \
+ --disable-gnome \
+ --enable-session-screenshots \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ # tips doesnt work and i dont like them.
+ # just remove to save space
+ rm -f "$pkgdir"/etc/xdg/autostart/xfce4-tips-autostart.desktop \
+ "$pkgdir"/usr/bin/xfce4-tips
+}
+
+md5sums="7628be41ed3511a20cff5673d9d39858 xfce4-session-4.6.1.tar.bz2
+bfd9132f08f4a92efbe982fb911c511c busybox-shutdown.patch"
diff --git a/main/xfce4-session/busybox-shutdown.patch b/main/xfce4-session/busybox-shutdown.patch
new file mode 100644
index 0000000000..37423618f0
--- /dev/null
+++ b/main/xfce4-session/busybox-shutdown.patch
@@ -0,0 +1,13 @@
+--- a/xfsm-shutdown-helper/main.c Thu Nov 5 17:34:17 2009
++++ b/xfsm-shutdown-helper/main.c Thu Nov 5 17:36:56 2009
+@@ -64,8 +64,8 @@
+ #define POWEROFF_CMD "/usr/sbin/shutdown -i 5 -g 0 -y"
+ #define REBOOT_CMD "/usr/sbin/shutdown -i 6 -g 0 -y"
+ #else
+-#define POWEROFF_CMD "/sbin/shutdown -h now"
+-#define REBOOT_CMD "/sbin/shutdown -r now"
++#define POWEROFF_CMD "/sbin/poweroff"
++#define REBOOT_CMD "/sbin/reboot"
+ #endif
+
+
diff --git a/main/xfce4-session/xfce4-session.post-deinstall b/main/xfce4-session/xfce4-session.post-deinstall
new file mode 120000
index 0000000000..7242718fcb
--- /dev/null
+++ b/main/xfce4-session/xfce4-session.post-deinstall
@@ -0,0 +1 @@
+xfce4-session.post-install \ No newline at end of file
diff --git a/main/xfce4-session/xfce4-session.post-install b/main/xfce4-session/xfce4-session.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfce4-session/xfce4-session.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfce4-settings/APKBUILD b/main/xfce4-settings/APKBUILD
new file mode 100644
index 0000000000..2d048cface
--- /dev/null
+++ b/main/xfce4-settings/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-settings
+pkgver=4.6.4
+pkgrel=0
+pkgdesc="Settings manager for xfce"
+url="http://www.xfce.org/"
+license="GPL-2"
+depends=
+makedepends="exo-dev libnotify-dev libxfcegui4-dev libxklavier-dev libwnck-dev
+ libglade-dev pkgconfig intltool gettext-dev libiconv-dev expat-dev
+ libxi-dev libsm-dev e2fsprogs-dev libxkbfile-dev libxrandr-dev"
+source="http://archive.xfce.org/src/xfce/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ sed -i -e 's/Rodent/Tango/g' xfsettingsd/xsettings.xml \
+ dialogs/appearance-settings/main.c
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-libxklavier \
+ --enable-xrandr \
+ --enable-sound-settings
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="04985407e8e5b916c44780314a177e96 xfce4-settings-4.6.4.tar.bz2"
diff --git a/main/xfce4-taskmanager/APKBUILD b/main/xfce4-taskmanager/APKBUILD
new file mode 100644
index 0000000000..039ca22d37
--- /dev/null
+++ b/main/xfce4-taskmanager/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-taskmanager
+pkgver=0.4.1
+pkgrel=0
+pkgdesc="a simple taskmanager for the Xfce Desktop Environment"
+url="http://goodies.xfce.org/projects/applications/xfce4-taskmanager"
+license="GPL-2"
+depends=
+makedepends="pkgconfig intltool libxfcegui4-dev"
+source="http://goodies.xfce.org/releases/$pkgname/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/xfce4 \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="4ed599faf6b734b2d2e7be16adf0b2d9 xfce4-taskmanager-0.4.1.tar.bz2"
diff --git a/main/xfce4-vala/APKBUILD b/main/xfce4-vala/APKBUILD
new file mode 100644
index 0000000000..e71e5bef02
--- /dev/null
+++ b/main/xfce4-vala/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-vala
+pkgver=4.6.0
+pkgrel=0
+pkgdesc="Vala bindings for Xfce4"
+url="http://wiki.xfce.org/vala-bindings"
+license="LGPL"
+depends="exo-dev libxfce4util-dev libxfce4menu-dev libxfcegui4-dev
+ xfce4-panel-dev xfconf-dev vala"
+makedepends=""
+install=
+subpackages=
+source="http://archive.xfce.org/src/bindings/xfce4-vala/4.6/xfce4-vala-$pkgver.tar.bz2"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="0b74000bc2d999173af4ce98d32f5fc6 xfce4-vala-4.6.0.tar.bz2"
diff --git a/main/xfce4-wavelan-plugin/APKBUILD b/main/xfce4-wavelan-plugin/APKBUILD
new file mode 100644
index 0000000000..27176f016a
--- /dev/null
+++ b/main/xfce4-wavelan-plugin/APKBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-wavelan-plugin
+pkgver=0.5.5
+pkgrel=0
+pkgdesc="plugin to monitor wifi connectivity for the Xfce4 panel"
+url="http://goodies.xfce.org/projects/panel-plugins/xfce4-wavelan-plugin/"
+license="custom"
+depends=
+makedepends="pkgconfig xfce4-panel-dev intltool libsm-dev"
+source="http://goodies.xfce.org/releases/$pkgname/$pkgname-$pkgver.tar.bz2
+ tooltip.diff"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -Np1 -i "$srcdir"/tooltip.diff || return 1
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+md5sums="1fa00ad9f24cc29536cb7622016c6a5e xfce4-wavelan-plugin-0.5.5.tar.bz2
+923b1f2bf2d26cf01f784b6194f64d93 tooltip.diff"
diff --git a/main/xfce4-wavelan-plugin/tooltip.diff b/main/xfce4-wavelan-plugin/tooltip.diff
new file mode 100644
index 0000000000..f180f5694a
--- /dev/null
+++ b/main/xfce4-wavelan-plugin/tooltip.diff
@@ -0,0 +1,19 @@
+diff -Naur xfce4-wavelan-plugin-0.5.5.old/panel-plugin/wavelan.c xfce4-wavelan-plugin-0.5.5/panel-plugin/wavelan.c
+--- xfce4-wavelan-plugin-0.5.5.old/panel-plugin/wavelan.c 2009-10-09 14:42:54.427988584 +0200
++++ xfce4-wavelan-plugin-0.5.5/panel-plugin/wavelan.c 2009-10-09 14:45:24.351280223 +0200
+@@ -199,6 +199,14 @@
+ if ((wavelan->device = wi_open(wavelan->interface)) != NULL) {
+ /* register the update timer */
+ TRACE ("Opened device");
++ /* reduce the default tooltip timeout to be smaller than the update interval otherwise
++ * we won't see tooltips on GTK 2.16 or newer */
++ GtkSettings *settings;
++ settings = gtk_settings_get_default();
++ if (g_object_class_find_property(G_OBJECT_GET_CLASS(settings), "gtk-tooltip-timeout"))
++ g_object_set(settings, "gtk-tooltip-timeout",
++ 250 - 10, NULL);
++
+ wavelan->timer_id = g_timeout_add(250, wavelan_timer, wavelan);
+ }
+ }
+
diff --git a/main/xfce4-xkb-plugin/APKBUILD b/main/xfce4-xkb-plugin/APKBUILD
new file mode 100644
index 0000000000..c7136cee38
--- /dev/null
+++ b/main/xfce4-xkb-plugin/APKBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4-xkb-plugin
+pkgver=0.5.3.3
+pkgrel=1
+pkgdesc="plugin to switch keyboard layouts for the Xfce4 panel"
+url="http://goodies.xfce.org/projects/panel-plugins/xfce4-xkb-plugin"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="xfce4-panel-dev libxklavier-dev librsvg-dev intltool libwnck-dev
+ libxi-dev libxkbfile-dev libsm-dev libgsf-dev e2fsprogs-dev bzip2-dev"
+source="http://goodies.xfce.org/releases/$pkgname/$pkgname-$pkgver.tar.gz
+ xfce4-xkb-plugin-0.5.3.3-libxklavier.patch"
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p1 -i ../xfce4-xkb-plugin-0.5.3.3-libxklavier.patch || return 1
+}
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="b233cc9de1cbace075eaf6e2c9a8e685 xfce4-xkb-plugin-0.5.3.3.tar.gz
+f805bf4d31d1a55176e479a3c253df95 xfce4-xkb-plugin-0.5.3.3-libxklavier.patch"
diff --git a/main/xfce4-xkb-plugin/xfce4-xkb-plugin-0.5.3.3-libxklavier.patch b/main/xfce4-xkb-plugin/xfce4-xkb-plugin-0.5.3.3-libxklavier.patch
new file mode 100644
index 0000000000..fbb9189056
--- /dev/null
+++ b/main/xfce4-xkb-plugin/xfce4-xkb-plugin-0.5.3.3-libxklavier.patch
@@ -0,0 +1,21 @@
+diff -ur xfce4-xkb-plugin-0.5.3.3.orig/panel-plugin/xkb-config.c xfce4-xkb-plugin-0.5.3.3/panel-plugin/xkb-config.c
+--- xfce4-xkb-plugin-0.5.3.3.orig/panel-plugin/xkb-config.c 2009-03-06 15:16:03.000000000 +0200
++++ xfce4-xkb-plugin-0.5.3.3/panel-plugin/xkb-config.c 2009-07-20 18:40:34.000000000 +0300
+@@ -150,7 +150,7 @@
+ config->application_map = g_hash_table_new (g_direct_hash, NULL);
+
+ registry = xkl_config_registry_get_instance (config->engine);
+- xkl_config_registry_load (registry);
++ xkl_config_registry_load (registry, FALSE);
+
+ config_item = xkl_config_item_new ();
+
+@@ -547,7 +547,7 @@
+ if (!config) return NULL;
+
+ registry = xkl_config_registry_get_instance (config->engine);
+- xkl_config_registry_load (registry);
++ xkl_config_registry_load (registry, FALSE);
+
+ return registry;
+ }
diff --git a/main/xfce4/APKBUILD b/main/xfce4/APKBUILD
new file mode 100644
index 0000000000..97db75c18c
--- /dev/null
+++ b/main/xfce4/APKBUILD
@@ -0,0 +1,22 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfce4
+pkgver=4.6
+pkgrel=1
+pkgdesc="XFCE 4 meta package"
+url="http://www.xfce.org"
+license="GPL"
+depends="thunar xfce-utils xfce4-panel xfce4-session orage terminal mousepad
+ xfce4-settings xfdesktop xfwm4 xfce4-mixer xfce4-appfinder
+ tango-icon-theme ttf-dejavu gtk-xfce-engine"
+
+makedepends=
+install=
+subpackages=
+source=
+
+build() {
+ mkdir -p "$pkgdir"
+}
+
+md5sums="" #generate with 'abuild checksum'
diff --git a/main/xfconf/APKBUILD b/main/xfconf/APKBUILD
new file mode 100644
index 0000000000..f3be7d47d4
--- /dev/null
+++ b/main/xfconf/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfconf
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="xfconf.. thingie"
+url="http://www.xfce.org/"
+license="GPL-2"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+makedepends="pkgconfig dbus-glib-dev libxfce4util-dev gettext-dev libiconv-dev"
+source="http://mocha.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2"
+
+depends_dev="glib-dev dbus-dev dbus-glib-dev"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="d4d3018767ea9eb4b57cc57d4038023b xfconf-4.6.1.tar.bz2"
diff --git a/main/xfdesktop/APKBUILD b/main/xfdesktop/APKBUILD
new file mode 100644
index 0000000000..4341fbf483
--- /dev/null
+++ b/main/xfdesktop/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfdesktop
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="A desktop manager for Xfce"
+url="http://www.xfce.org/"
+license="GPL-2"
+subpackages="$pkgname-dev $pkgname-doc"
+depends="hicolor-icon-theme thunar"
+makedepends="pkgconfig libxfce4menu-dev thunar-dev intltool gettext-dev
+ libiconv-dev libxfce4util-dev gtk+-dev libxfcegui4-dev libwnck-dev
+ libglade-dev xfce4-panel-dev libsm-dev libice-dev expat-dev
+ e2fsprogs-dev"
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="ae15cacc3e3834cca7238a8e1035c50d xfdesktop-4.6.1.tar.bz2
+db51db79681eadc47be4932355a77c25 xfdesktop.post-install
+db51db79681eadc47be4932355a77c25 xfdesktop.post-upgrade
+db51db79681eadc47be4932355a77c25 xfdesktop.post-deinstall"
diff --git a/main/xfdesktop/xfdesktop.post-deinstall b/main/xfdesktop/xfdesktop.post-deinstall
new file mode 120000
index 0000000000..15a86781aa
--- /dev/null
+++ b/main/xfdesktop/xfdesktop.post-deinstall
@@ -0,0 +1 @@
+xfdesktop.post-install \ No newline at end of file
diff --git a/main/xfdesktop/xfdesktop.post-install b/main/xfdesktop/xfdesktop.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfdesktop/xfdesktop.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfdesktop/xfdesktop.post-upgrade b/main/xfdesktop/xfdesktop.post-upgrade
new file mode 120000
index 0000000000..15a86781aa
--- /dev/null
+++ b/main/xfdesktop/xfdesktop.post-upgrade
@@ -0,0 +1 @@
+xfdesktop.post-install \ No newline at end of file
diff --git a/main/xfprint/APKBUILD b/main/xfprint/APKBUILD
new file mode 100644
index 0000000000..a7788ee420
--- /dev/null
+++ b/main/xfprint/APKBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfprint
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="A print dialog and a printer manager for Xfce"
+url="http://www.xfce.org/"
+license="GPL2"
+depends="hicolor-icon-theme"
+makedepends="libxfcegui4-dev xfconf-dev cups-dev gnutls-dev intltool libsm-dev"
+install=
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static || return 1
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="d92fca97a42816085080baf07a99a62e xfprint-4.6.1.tar.bz2"
diff --git a/main/xfwm4-themes/APKBUILD b/main/xfwm4-themes/APKBUILD
new file mode 100644
index 0000000000..78d9a68687
--- /dev/null
+++ b/main/xfwm4-themes/APKBUILD
@@ -0,0 +1,24 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfwm4-themes
+pkgver=4.6.0
+pkgrel=0
+pkgdesc="A set of additionnal themes for the Xfce window manager"
+url="http://www.xfce.org/"
+license="GPL2"
+depends="xfwm4"
+makedepends="pkgconfig"
+options="!strip"
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="4dc5cb29cbd40e3b9dece12a85e20854 xfwm4-themes-4.6.0.tar.bz2"
diff --git a/main/xfwm4/APKBUILD b/main/xfwm4/APKBUILD
new file mode 100644
index 0000000000..5f90698e7d
--- /dev/null
+++ b/main/xfwm4/APKBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xfwm4
+pkgver=4.6.1
+pkgrel=0
+pkgdesc="Xfce window manager, compatible with Gnome, Gnome2, KDE2, and KDE3"
+url="http://www.xfce.org/"
+license="GPL-2"
+depends="hicolor-icon-theme"
+makedepends="pkgconfig libxfcegui4-dev libwnck-dev intltool gettext-dev
+ libiconv-dev libglade-dev expat-dev libsm-dev e2fsprogs"
+install="xfwm4.post-install xfwm4.post-upgrade xfwm4.post-deinstall"
+source="http://www.xfce.org/archive/xfce-$pkgver/src/$pkgname-$pkgver.tar.bz2
+ $install"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-compositor \
+ --enable-xsync || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="538ff2554a23bf877d336e573884da9a xfwm4-4.6.1.tar.bz2
+db51db79681eadc47be4932355a77c25 xfwm4.post-install
+db51db79681eadc47be4932355a77c25 xfwm4.post-upgrade
+db51db79681eadc47be4932355a77c25 xfwm4.post-deinstall"
diff --git a/main/xfwm4/xfwm4.post-deinstall b/main/xfwm4/xfwm4.post-deinstall
new file mode 120000
index 0000000000..822a58d8cc
--- /dev/null
+++ b/main/xfwm4/xfwm4.post-deinstall
@@ -0,0 +1 @@
+xfwm4.post-install \ No newline at end of file
diff --git a/main/xfwm4/xfwm4.post-install b/main/xfwm4/xfwm4.post-install
new file mode 100644
index 0000000000..c523d78da0
--- /dev/null
+++ b/main/xfwm4/xfwm4.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+
diff --git a/main/xfwm4/xfwm4.post-upgrade b/main/xfwm4/xfwm4.post-upgrade
new file mode 120000
index 0000000000..822a58d8cc
--- /dev/null
+++ b/main/xfwm4/xfwm4.post-upgrade
@@ -0,0 +1 @@
+xfwm4.post-install \ No newline at end of file
diff --git a/main/xgamma/APKBUILD b/main/xgamma/APKBUILD
new file mode 100644
index 0000000000..a980fcf4ce
--- /dev/null
+++ b/main/xgamma/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xgamma
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="Alter a monitor's gamma correction through the X server"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libx11-dev libxxf86vm-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="e8a88bf1a18f35b724619849dca97f4f xgamma-1.0.3.tar.bz2"
diff --git a/main/xhost/APKBUILD b/main/xhost/APKBUILD
new file mode 100644
index 0000000000..eb4989ed67
--- /dev/null
+++ b/main/xhost/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xhost
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="Controls host and/or user access to a running X server."
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libx11-dev libxmu-dev libxau-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="c7f91b4a750d297f269c2a0a3206a1b2 xhost-1.0.3.tar.bz2"
diff --git a/main/xineramaproto/APKBUILD b/main/xineramaproto/APKBUILD
new file mode 100644
index 0000000000..0c44492f09
--- /dev/null
+++ b/main/xineramaproto/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xineramaproto
+pkgver=1.2
+pkgrel=0
+pkgdesc="X11 Xinerama extension wire protocol"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org//releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="a8aadcb281b9c11a91303e24cdea45f5 xineramaproto-1.2.tar.bz2"
diff --git a/main/xinit/APKBUILD b/main/xinit/APKBUILD
new file mode 100644
index 0000000000..be135ed7a7
--- /dev/null
+++ b/main/xinit/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xinit
+pkgver=1.1.1
+pkgrel=3
+pkgdesc="X.Org initialisation program "
+url="http://xorg.freedesktop.org/"
+license="GPL"
+subpackages="$pkgname-doc"
+depends="xauth"
+makedepends="pkgconfig libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/xinit-$pkgver.tar.bz2
+ xinitrc
+ xsession
+ xserverrc"
+
+build() {
+ cd "$srcdir"/xinit-$pkgver
+ ./configure --prefix=/usr || return 1
+ make XINITDIR=/etc/X11/xinit || return 1
+}
+
+package() {
+ cd "$srcdir"/xinit-$pkgver
+ make XINITDIR=/etc/X11/xinit DESTDIR="$pkgdir" install || return 1
+ chmod +x "$pkgdir"/usr/bin/startx
+ install -m755 -d "$pkgdir"/etc/skel
+ install -m755 -D "$srcdir"/xinitrc "$pkgdir"/etc/X11/xinit/xinitrc
+ install -m755 "$srcdir"/xsession "$pkgdir"/etc/skel/.xsession || return 1
+ install -m755 "$srcdir"/xserverrc "$pkgdir"/etc/X11/xinit/xserverrc || return 1
+}
+md5sums="93c73705ed9eb1e1a6b6938405672f2b xinit-1.1.1.tar.bz2
+af322d72972d5722b7fc0a9e8f025b15 xinitrc
+4f04d2891ea87f50fde518267b7a1154 xsession
+bb550d3b9a2d2b6cbe6e2667a3a7cd03 xserverrc"
diff --git a/main/xinit/xinitrc b/main/xinit/xinitrc
new file mode 100644
index 0000000000..0055713592
--- /dev/null
+++ b/main/xinit/xinitrc
@@ -0,0 +1,49 @@
+#!/bin/sh
+# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
+
+userresources=$HOME/.Xresources
+usermodmap=$HOME/.Xmodmap
+xinitdir=/etc/X11
+sysresources=$xinitdir/Xresources
+sysmodmap=$xinitdir/Xmodmap
+
+# merge in defaults and keymaps
+
+if [ -f $sysresources ]; then
+ xrdb -merge $sysresources
+fi
+
+if [ -f $sysmodmap ]; then
+ xmodmap $sysmodmap
+fi
+
+if [ -f $userresources ]; then
+ xrdb -merge $userresources
+fi
+
+if [ -f $usermodmap ]; then
+ xmodmap $usermodmap
+fi
+
+# First try ~/.xinitrc
+if [ -f "$HOME/.xinitrc" ]; then
+ XINITRC="$HOME/.xinitrc"
+ if [ -x $XINITRC ]; then
+ # if the x bit is set on .xinitrc
+ # it means the xinitrc is not a
+ # shell script but something else
+ exec $XINITRC "$@"
+ else
+ exec /bin/sh "$HOME/.xinitrc" "$@"
+ fi
+fi
+
+# If not present, try the system default
+exec startxfce4
+
+
+# Fall back to fluxbox
+exec startfluxbox
+
+# Start only terminal as last resort
+exec terminal || exec aterm
diff --git a/main/xinit/xserverrc b/main/xinit/xserverrc
new file mode 100644
index 0000000000..6a636c1190
--- /dev/null
+++ b/main/xinit/xserverrc
@@ -0,0 +1 @@
+exec /usr/bin/X -nolisten tcp
diff --git a/main/xinit/xsession b/main/xinit/xsession
new file mode 100644
index 0000000000..819c248cd5
--- /dev/null
+++ b/main/xinit/xsession
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+#
+# ~/.xsession
+#
+# Executed by xdm/gdm/kdm at login
+#
+
+/bin/sh -l ~/.xinitrc
+
diff --git a/main/xkbcomp/APKBUILD b/main/xkbcomp/APKBUILD
new file mode 100644
index 0000000000..13a7fd3ebe
--- /dev/null
+++ b/main/xkbcomp/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xkbcomp
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="compile XKB keyboard description"
+url="http://xorg.freedesktop.org"
+license="custom"
+depends=
+makedepends="pkgconfig libx11-dev libxkbfile-dev"
+subpackages="$pkgname-doc"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+}
+
+md5sums="38c387bacdc01038c8ac280588792bcf xkbcomp-1.1.1.tar.bz2"
diff --git a/main/xkeyboard-config/APKBUILD b/main/xkeyboard-config/APKBUILD
new file mode 100644
index 0000000000..3816ce62f0
--- /dev/null
+++ b/main/xkeyboard-config/APKBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xkeyboard-config
+pkgver=1.6
+pkgrel=0
+pkgdesc="X keyboard configuration files"
+url="http://www.freedesktop.org/wiki/Software/XKeyboardConfig"
+license="custom"
+depends=
+makedepends="xkbcomp intltool"
+source="http://xlibs.freedesktop.org/xkbdesc/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ ./configure --prefix=/usr \
+ --with-xkb-base=/usr/share/X11/xkb \
+ --with-xkb-rules-symlink=xorg \
+ --enable-compat-rules=yes || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/share/X11/xkb/compiled || return 1
+ install -m755 -d "$pkgdir"/var/lib/xkb
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="5ae575a9073af12cd71773e065b38b3a xkeyboard-config-1.6.tar.bz2"
diff --git a/main/xmodmap/APKBUILD b/main/xmodmap/APKBUILD
new file mode 100644
index 0000000000..87d0d4ba87
--- /dev/null
+++ b/main/xmodmap/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xmodmap
+pkgver=1.0.4
+pkgrel=0
+pkgdesc="utility for modifying keymaps and pointer button mappings in X"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="bbe021f812e0014a8ee3692317788119 xmodmap-1.0.4.tar.bz2"
diff --git a/main/xorg-server/APKBUILD b/main/xorg-server/APKBUILD
new file mode 100644
index 0000000000..4b9796e36b
--- /dev/null
+++ b/main/xorg-server/APKBUILD
@@ -0,0 +1,137 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xorg-server
+pkgver=1.7.3.902
+pkgrel=0
+pkgdesc="X.Org X servers"
+url="http://xorg.freedesktop.org"
+license="custom"
+subpackages="$pkgname-dev $pkgname-doc xfbdev"
+depends="
+ font-misc-misc
+ font-cursor-misc
+ xkeyboard-config
+ xkbcomp
+ xinit
+ "
+makedepends="
+ libpciaccess-dev
+ libx11-dev
+ libxdamage-dev
+ libxfont-dev
+ libxkbfile-dev
+ libxkbui-dev
+ libxv-dev
+ libxxf86dga-dev
+ libxxf86misc-dev
+ openssl-dev
+ pixman-dev
+
+ bigreqsproto
+ compositeproto
+ damageproto
+ dbus-dev
+ fixesproto
+ inputproto
+ pkgconfig
+ randrproto
+ renderproto
+ resourceproto
+ xcmiscproto
+ xextproto
+ xtrans
+ xf86driproto
+ glproto
+ mesa-dev
+ libdrm-dev
+ perl
+ scrnsaverproto
+ xineramaproto
+ libxinerama-dev
+ libtool
+ automake
+ autoconf
+ util-macros
+ "
+# hal>=0.5.11 xcursor-themes xkeyboard-config>=1.3
+# xorg-server-utils xorg-utils xorg-fonts-misc xbitmaps libdrm>=2.3.1
+# diffutils xf86-input-evdev"
+
+source="http://xorg.freedesktop.org/releases/individual/xserver/$pkgname-$pkgver.tar.bz2
+ xorg-redhat-die-ugly-pattern-die-die-die.patch
+"
+
+depends_dev="pixman-dev libpciaccess-dev"
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+
+ for i in ../*.patch; do
+ msg "Applying $i..."
+ patch -Np1 -i "$i" || return 1
+ done
+ # Fix dbus config path
+ sed -i -e 's/\$(sysconfdir)/\/etc/' config/Makefile.* || return 1
+}
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ # xorg modules does not work with the -z now and it seems like we
+ # cannot pass over the linker flag to .so files. so we tweak the
+ # gcc specs.
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/X11 \
+ --localstatedir=/var \
+ --with-default-font-path=/usr/share/fonts/misc,/usr/share/fonts/100dpi:unscaled,/usr/share/fonts/75dpi:unscaled,/usr/share/fonts/TTF,/usr/share/fonts/Type1 \
+ --with-xkb-path=/usr/share/X11/xkb \
+ --with-xkb-output=/var/lib/xkb \
+ --with-dri-driver-path=/usr/lib/xorg/modules/dri \
+ --enable-composite \
+ --enable-config-dbus \
+ --enable-dri \
+ --enable-ipv6 \
+ --enable-xfbdev \
+ --enable-kdrive \
+ --enable-xorg \
+ --enable-xv \
+ --enable-xres \
+ --disable-xephyr \
+ --disable-config-hal \
+ --disable-dmx \
+ --disable-tslib \
+ --disable-xnest \
+ --disable-xsdl \
+ --disable-aiglx \
+ --disable-xace \
+ || return 1
+
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make -j1 DESTDIR="$pkgdir" install || return 1
+
+ install -m755 -d "$pkgdir"/etc/X11 || return 1
+ install -m755 -d "$pkgdir"/var/lib/xkb || return 1
+ install -m644 -D COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+
+xfbdev() {
+ pkgdesc="X.org server for framebuffer"
+ depends=
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/Xfbdev "$subpkgdir"/usr/bin/
+}
+
+xephyr() {
+ pkgdesc="kdrive based X Server which targets a window on a host X Server as its framebuffer"
+ depends=
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/Xephyr "$subpkgdir"/usr/bin/
+}
+
+md5sums="5806bd9d1ed734a60db2e32473a720b4 xorg-server-1.7.3.902.tar.bz2
+222de594206d1148a90eddfda4f7a11a xorg-redhat-die-ugly-pattern-die-die-die.patch"
diff --git a/main/xorg-server/xorg-redhat-die-ugly-pattern-die-die-die.patch b/main/xorg-server/xorg-redhat-die-ugly-pattern-die-die-die.patch
new file mode 100644
index 0000000000..3ca10647ce
--- /dev/null
+++ b/main/xorg-server/xorg-redhat-die-ugly-pattern-die-die-die.patch
@@ -0,0 +1,16 @@
+Remove the default root window grey stipple pattern, replacing it with
+blackness.
+
+--- Xserver/dix/window.c.die-ugly-pattern-die-die-die Tue Feb 12 16:33:04 2002
++++ Xserver/dix/window.c Tue Feb 12 16:45:32 2002
+@@ -119,8 +119,8 @@
+ *
+ ******/
+
+-static unsigned char _back_lsb[4] = {0x88, 0x22, 0x44, 0x11};
+-static unsigned char _back_msb[4] = {0x11, 0x44, 0x22, 0x88};
++static unsigned char _back_lsb[4] = {0x00, 0x00, 0x00, 0x00};
++static unsigned char _back_msb[4] = {0x00, 0x00, 0x00, 0x00};
+
+ int screenIsSaved = SCREEN_SAVER_OFF;
+
diff --git a/main/xproto/APKBUILD b/main/xproto/APKBUILD
new file mode 100644
index 0000000000..87f6c66d2b
--- /dev/null
+++ b/main/xproto/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xproto
+pkgver=7.0.16
+pkgrel=0
+pkgdesc="X11 core wire protocol and auxiliary headers"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/proto/$pkgname-$pkgver.tar.bz2"
+
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -D -m644 "$srcdir"/$pkgname-$pkgver/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+md5sums="75c9edff1f3823e5ab6bb9e66821a901 xproto-7.0.16.tar.bz2"
diff --git a/main/xrandr/APKBUILD b/main/xrandr/APKBUILD
new file mode 100644
index 0000000000..fefa3aa843
--- /dev/null
+++ b/main/xrandr/APKBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xrandr
+pkgver=1.3.2
+pkgrel=0
+pkgdesc="primitive command line interface to RandR extension"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libxrandr-dev libxrender-dev libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2
+ $pkgname-1.3.0-clone-nameclash.patch"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ patch -p1 < ../$pkgname-1.3.0-clone-nameclash.patch || return 1
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="2cb19bb1c19ccf77c40032b03dbe06f0 xrandr-1.3.2.tar.bz2
+b938aad95a5ea71bce7a2529fd8f6866 xrandr-1.3.0-clone-nameclash.patch"
diff --git a/main/xrandr/xrandr-1.3.0-clone-nameclash.patch b/main/xrandr/xrandr-1.3.0-clone-nameclash.patch
new file mode 100644
index 0000000000..55af5590c4
--- /dev/null
+++ b/main/xrandr/xrandr-1.3.0-clone-nameclash.patch
@@ -0,0 +1,29 @@
+--- xrandr-1.3.0/xrandr.c.orig 2009-04-10 12:26:02.000000000 +0000
++++ xrandr-1.3.0/xrandr.c 2009-04-10 12:43:44.000000000 +0000
+@@ -209,7 +209,7 @@
+
+ #if HAS_RANDR_1_2
+ typedef enum _policy {
+- clone, extend
++ p_clone, extend
+ } policy_t;
+
+ typedef enum _relation {
+@@ -2027,7 +2027,7 @@
+ int ret = 0;
+ #if HAS_RANDR_1_2
+ output_t *output = NULL;
+- policy_t policy = clone;
++ policy_t policy = p_clone;
+ Bool setit_1_2 = False;
+ Bool query_1_2 = False;
+ Bool modeit = False;
+@@ -2401,7 +2401,7 @@
+ continue;
+ }
+ if (!strcmp ("--clone", argv[i])) {
+- policy = clone;
++ policy = p_clone;
+ setit_1_2 = True;
+ continue;
+ }
diff --git a/main/xrdb/APKBUILD b/main/xrdb/APKBUILD
new file mode 100644
index 0000000000..271fdb2934
--- /dev/null
+++ b/main/xrdb/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xrdb
+pkgver=1.0.6
+pkgrel=0
+pkgdesc="X server resource database utility"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libxmu-dev libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build () {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="8dd881cd5a7dcb6e456549817f0fb475 xrdb-1.0.6.tar.bz2"
diff --git a/main/xrefresh/APKBUILD b/main/xrefresh/APKBUILD
new file mode 100644
index 0000000000..f82d406213
--- /dev/null
+++ b/main/xrefresh/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xrefresh
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="refresh all or part of an X screen"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="8f4fafcfb77b3c6972cc44bb3f1c899c xrefresh-1.0.3.tar.bz2"
diff --git a/main/xset/APKBUILD b/main/xset/APKBUILD
new file mode 100644
index 0000000000..2a46871db5
--- /dev/null
+++ b/main/xset/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xset
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="X.Org xset application"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libxmu-dev libx11-dev libxext-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="eeb0d02f69c76bd40470dede99b4bd49 xset-1.1.0.tar.bz2"
diff --git a/main/xsetmode/APKBUILD b/main/xsetmode/APKBUILD
new file mode 100644
index 0000000000..13e8fd3ebd
--- /dev/null
+++ b/main/xsetmode/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xsetmode
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="set the mode for an X Input device"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libxi-dev libx11-dev"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="d074e79d380b031d2f60e4cd56538c93 xsetmode-1.0.0.tar.bz2"
diff --git a/main/xsetroot/APKBUILD b/main/xsetroot/APKBUILD
new file mode 100644
index 0000000000..cfcdb26bec
--- /dev/null
+++ b/main/xsetroot/APKBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xsetroot
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="X.Org xsetroot application"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+depends=
+makedepends="pkgconfig libx11-dev libxmu-dev xbitmaps"
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man || return 1
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="cbda9b9b8da5af4614110883d5a276b8 xsetroot-1.0.3.tar.bz2"
diff --git a/main/xtrans/APKBUILD b/main/xtrans/APKBUILD
new file mode 100644
index 0000000000..05f98885f5
--- /dev/null
+++ b/main/xtrans/APKBUILD
@@ -0,0 +1,19 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xtrans
+pkgver=1.2.4
+pkgrel=0
+pkgdesc="X transport library"
+url="http://xorg.freedesktop.org/"
+license="custom"
+depends=""
+makedepends=""
+source="http://xorg.freedesktop.org/releases/individual/lib/$pkgname-$pkgver.tar.bz2"
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+md5sums="b3b57e78dc06885e79f8393a83619715 xtrans-1.2.4.tar.bz2"
diff --git a/main/xvinfo/APKBUILD b/main/xvinfo/APKBUILD
new file mode 100644
index 0000000000..7edd4d03c0
--- /dev/null
+++ b/main/xvinfo/APKBUILD
@@ -0,0 +1,21 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=xvinfo
+pkgver=1.0.2
+pkgrel=0
+pkgdesc="Print out X-Video extension adaptor information"
+url="http://xorg.freedesktop.org/"
+license="custom"
+subpackages="$pkgname-doc"
+makedepends="pkgconfig libxv-dev"
+depends=
+source="http://xorg.freedesktop.org/releases/individual/app/$pkgname-$pkgver.tar.bz2"
+build ()
+{
+ cd "$srcdir"/$pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man || return 1
+ make || return 1
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="e1e318436f49e2f0f3764593dadd9ad2 xvinfo-1.0.2.tar.bz2"
diff --git a/main/zsnes/APKBUILD b/main/zsnes/APKBUILD
new file mode 100644
index 0000000000..5e7d5d2df8
--- /dev/null
+++ b/main/zsnes/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=zsnes
+pkgver=1.51
+pkgrel=0
+pkgdesc="Super Nintendo emulator"
+url="http://www.zsnes.com/"
+license="GPL"
+makedepends="sdl-dev libpng-dev ncurses-dev mesa-dev automake autoconf nasm"
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}151src.tar.bz2
+ $pkgname.desktop
+ zsnes.patch
+ zsnes-1.51-CC-quotes.patch
+ zsnes-1.51-depbuild.patch
+ zsnes_icon.png"
+
+build ()
+{
+ cd "$srcdir"/${pkgname}_${pkgver%.*}_${pkgver#*.}
+ patch -p1 -i ../zsnes-1.51-CC-quotes.patch || return 1
+ patch -p1 -i ../zsnes-1.51-depbuild.patch || return 1
+ patch -p1 -i ../zsnes.patch || return 1
+ cd "$srcdir"/${pkgname}_${pkgver%.*}_${pkgver#*.}/src
+ aclocal && autoconf || return 1
+ export GCC_SPECS=/usr/share/gcc/hardenednopie.specs
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ x_libraries=/usr/lib \
+ force_arch=i486 \
+ --enable-release || return 1
+ make makefile.dep
+ make || return 1
+}
+
+package() {
+ cd "$srcdir"/${pkgname}_${pkgver%.*}_${pkgver#*.}/src
+ make DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir"/zsnes.desktop \
+ "$pkgdir"/usr/share/applications/zsnes.desktop
+ install -Dm644 "$srcdir"/zsnes_icon.png \
+ "$pkgdir"/usr/share/pixmaps/zsnes_icon.png
+ mv "$pkgdir"/usr/man "$pkgdir"/usr/share
+}
+md5sums="7071186bf80632ae88a153239498d8c9 zsnes151src.tar.bz2
+b100b2aa342c551167d7c5dcdcde9dd4 zsnes.desktop
+4df831b3d87a35949bcf3fd5547decb1 zsnes.patch
+69ca17611c0d4a21529a95eb37e05c2f zsnes-1.51-CC-quotes.patch
+994af091cbb8f17f82d78c0ca89ac549 zsnes-1.51-depbuild.patch
+b5260c02adfc3b7ff725041214b00bfd zsnes_icon.png"
diff --git a/main/zsnes/zsnes-1.51-CC-quotes.patch b/main/zsnes/zsnes-1.51-CC-quotes.patch
new file mode 100644
index 0000000000..a871b62604
--- /dev/null
+++ b/main/zsnes/zsnes-1.51-CC-quotes.patch
@@ -0,0 +1,20 @@
+--- a/src/Makefile.in.orig 2009-02-25 18:13:40.000000000 +0100
++++ b/src/Makefile.in 2009-02-25 18:13:16.000000000 +0100
+@@ -95,7 +95,7 @@
+ %.o: %.cpp
+ @CXX@ @CXXFLAGS@ -o $@ -c $<
+ %.o %.h: %.psr $(PSR)
+- ./$(PSR) @PSRFLAGS@ -gcc @CC@ -compile -flags "@CFLAGS@ -O1" -cheader $*.h -fname $* $*.o $<
++ ./$(PSR) @PSRFLAGS@ -gcc "@CC@" -compile -flags "@CFLAGS@ -O1" -cheader $*.h -fname $* $*.o $<
+
+ default: main
+ all: main tools--- zsnes_1_51/src/Makefile.in.orig 2009-02-25 18:02:07.000000000 +0100
+@@ -133,7 +133,7 @@
+
+ include makefile.dep
+ makefile.dep: $(TOOL_D)/depbuild Makefile
+- $(TOOL_D)/depbuild @CC@ "@CFLAGS@" @NASMPATH@ "@NFLAGS@" $(Z_OBJS) > makefile.dep
++ $(TOOL_D)/depbuild "@CC@" "@CFLAGS@" @NASMPATH@ "@NFLAGS@" $(Z_OBJS) > makefile.dep
+
+ Makefile: Makefile.in config.status
+ ./config.status
diff --git a/main/zsnes/zsnes-1.51-depbuild.patch b/main/zsnes/zsnes-1.51-depbuild.patch
new file mode 100644
index 0000000000..e2cc0d86f6
--- /dev/null
+++ b/main/zsnes/zsnes-1.51-depbuild.patch
@@ -0,0 +1,34 @@
+--- a/src/tools/depbuild.cpp Fri Nov 13 18:41:24 2009
++++ b/src/tools/depbuild.cpp Fri Nov 13 19:04:09 2009
+@@ -24,6 +24,9 @@
+ #include <iostream>
+ #include <string>
+ #include <cstdio>
++#include <cstdlib>
++#include <unistd.h>
++
+ using namespace std;
+
+ #include "fileutil.h"
+@@ -130,7 +133,20 @@
+ void dependency_calculate_asm(const char *filename)
+ {
+ string command = nasm + " " + nflags + " -M " + filename;
+- system(command.c_str());
++ FILE *fp = popen(command.c_str(), "r");
++ if (fp)
++ {
++ char line[256];
++ while (fgets(line, sizeof(line), fp)) //Process all lines of output
++ {
++ cout << line;
++ }
++ pclose(fp);
++ }
++ else
++ {
++ cerr << "Failed on: " << filename << "\n";
++ }
+ }
+
+ void dependency_calculate_psr(const char *filename)
diff --git a/main/zsnes/zsnes.desktop b/main/zsnes/zsnes.desktop
new file mode 100644
index 0000000000..db13ada4c6
--- /dev/null
+++ b/main/zsnes/zsnes.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Zsnes
+Comment=Super Nintendo emulator
+Exec=/usr/bin/zsnes
+Icon=/usr/share/pixmaps/zsnes_icon.png
+Terminal=false
+Type=Application
+Categories=Application;Game
+StartupNotify=false
diff --git a/main/zsnes/zsnes.patch b/main/zsnes/zsnes.patch
new file mode 100644
index 0000000000..db07403845
--- /dev/null
+++ b/main/zsnes/zsnes.patch
@@ -0,0 +1,67 @@
+diff -cr zsnes_1_51/src/parsegen.cpp zsnes_1_51-patched/src/parsegen.cpp
+*** zsnes_1_51/src/parsegen.cpp 2007-10-31 01:30:26.000000000 -0300
+--- zsnes_1_51-patched/src/parsegen.cpp 2008-07-13 18:28:53.000000000 -0300
+***************
+*** 19,24 ****
+--- 19,27 ----
+ Config file handler creator by Nach (C) 2005-2007
+ */
+
++ #include <cstring>
++ #include <cstdlib>
++
+ #if !defined(__GNUC__) && !defined(_MSC_VER)
+ #error You are using an unsupported compiler
+ #endif
+***************
+*** 1822,1828 ****
+ }
+ }
+
+! int main(size_t argc, const char *const *const argv)
+ {
+ const char *cheader_file = 0;
+ bool compile = false;
+--- 1825,1831 ----
+ }
+ }
+
+! int main(int argc, const char *const *const argv)
+ {
+ const char *cheader_file = 0;
+ bool compile = false;
+diff -cr zsnes_1_51/src/tools/depbuild.cpp zsnes_1_51-patched/src/tools/depbuild.cpp
+*** zsnes_1_51/src/tools/depbuild.cpp 2006-12-27 08:04:05.000000000 -0300
+--- zsnes_1_51-patched/src/tools/depbuild.cpp 2008-07-13 18:30:46.000000000 -0300
+***************
+*** 183,189 ****
+ }
+ }
+
+! int main(size_t argc, const char *const *const argv)
+ {
+ if (argc < 5)
+ {
+--- 183,189 ----
+ }
+ }
+
+! int main(int argc, const char *const *const argv)
+ {
+ if (argc < 5)
+ {
+diff -cr zsnes_1_51/src/tools/strutil.h zsnes_1_51-patched/src/tools/strutil.h
+*** zsnes_1_51/src/tools/strutil.h 2006-12-27 08:04:05.000000000 -0300
+--- zsnes_1_51-patched/src/tools/strutil.h 2008-07-13 18:30:27.000000000 -0300
+***************
+*** 15,20 ****
+--- 15,23 ----
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
++ #include <cstring>
++ #include <cstdlib>
++
+ /*
+ This is part of a toolkit used to assist in ZSNES development
+ */
diff --git a/main/zsnes/zsnes_icon.png b/main/zsnes/zsnes_icon.png
new file mode 100644
index 0000000000..31608ba068
--- /dev/null
+++ b/main/zsnes/zsnes_icon.png
Binary files differ