archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / openbox / trunk / PKGBUILD
blobc6bfc4079672019bbf0b7bbfade14dbdc90a772e
1 # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
2 # Contributor: Florian pritz <bluewind@xinu.at>
3 # Contributor: BartÅ‚omiej Piotrowski <nospam@bpiotrowski.pl>
4 # Contributor: Brad Fanella <bradfanella@archlinux.us>
5 # Contributor: Andrea Scarpino <andrea@archlinux.org>
6 # Contributor: tobias <tobias@archlinux.org>
8 pkgname=openbox
9 pkgver=3.6.1
10 pkgrel=10
11 pkgdesc='Highly configurable and lightweight X11 window manager'
12 arch=('x86_64')
13 url='http://openbox.org'
14 license=('GPL')
15 provides=(libobrender.so)
16 depends=('startup-notification' 'libxml2' 'libxinerama' 'libxrandr'
17          'libxcursor' 'pango' 'imlib2' 'librsvg' 'libsm')
18 makedepends=('python-xdg')
19 optdepends=('plasma-workspace: for the KDE/Openbox xsession'
20             'python-xdg: for the openbox-xdg-autostart script')
21 groups=('lxde' 'lxde-gtk3' 'lxqt')
22 backup=('etc/xdg/openbox/menu.xml' 'etc/xdg/openbox/rc.xml'
23         'etc/xdg/openbox/autostart' 'etc/xdg/openbox/environment')
24 source=(http://openbox.org/dist/openbox/$pkgname-$pkgver.tar.gz{,.asc}
25         openbox-3.5.0-title-matching.patch
26         openbox-3.5.0-which-2.20.patch
27         $pkgname-kde-paths.patch
28         py3.patch
29         debian-887908.patch
30         https://github.com/mati75/openbox-debian/raw/debian/3.6.1-8/debian/patches/917204_undecorated_maximized_no_border.patch
31         https://github.com/Mikachu/openbox/commit/9ed6fdd71890c5cc43747f105382d5677e5d37e7.patch)
32 md5sums=('b72794996c6a3ad94634727b95f9d204'
33          'SKIP'
34          '0a11d7149da210a31ef88f8a9c717711'
35          '7ca3b5244bb092d46f5bcf1e2bdf4a18'
36          'f7df0df8c1d2da279e48d0fdc984fb71'
37          '67ae9735c283637ef6d11b17a3f81953'
38          '4ff275746641e840605e9a74043079fe'
39          'bf629dfad2b4bef6330dd914922cae48'
40          '783f40691cc84e6a9e401677e0e10d01')
41 sha256sums=('8b4ac0760018c77c0044fab06a4f0c510ba87eae934d9983b10878483bde7ef7'
42             'SKIP'
43             'adc0820671e6ec42ff1bb4cbb04c65e19cdf74c62bcef3a3b727adb208eb82c7'
44             '988acc655cf9a0fe4252c7e76d5ec2124a3f16c3ed26072fdcfd829ae9278c26'
45             '40b6feb8fd83da0c9073ffc3ee4c009b5b036d105199bcaf6aa03cb18bf0b7e0'
46             '4cd2708320ab3cdf4868bd66f20481dbad504d0e9aa43f13bca5c149b94a49cf'
47             'f13d0aa857ea0a4304d8529b58cdda22d74b827cac78b991f92289f341a61fd8'
48             '057761c75f9c3ccc799a2a3f453b729d950e6b78a271f5269d1b0f2b982d45c2'
49             'a371d116483f37cd888bdeb1a5a1b594ddc9bf92c9c91478a1d5bff48a24b537')
50 validpgpkeys=(4B71379A9D5263D112A85620A5A4E99C711D3B61)
52 prepare() {
53   cd $pkgname-$pkgver
55   patch -Np1 -i "$srcdir"/openbox-3.5.0-title-matching.patch  # OB#5277
56   patch -Np1 -i "$srcdir"/openbox-3.5.0-which-2.20.patch # FS#11455
57   patch -Np1 -i "$srcdir"/$pkgname-kde-paths.patch # FS#64139
58   # modified from https://github.com/troycurtisjr/openbox/commit/acfbbc4ea40932f183617bb7006700140fe5f61e
59   patch -Np1 -i "$srcdir"/py3.patch
60   # Taken from https://sources.debian.org/data/main/o/openbox/3.6.1-9/debian/patches/887908.patch
61   # For https://bugs.archlinux.org/task/66738
62   patch -Np1 -i "$srcdir"/debian-887908.patch
63   # https://bugs.archlinux.org/task/72023
64   patch -Np1 -i "$srcdir"/917204_undecorated_maximized_no_border.patch
65   # https://bugs.archlinux.org/task/77853
66   # The patch is proposed on https://bugzilla.icculus.org/show_bug.cgi?id=6669
67   # and commited to a work branch in the upstream repo
68   patch -Np1 -i "$srcdir"/9ed6fdd71890c5cc43747f105382d5677e5d37e7.patch
70   # py3.patch modifies configure.ac
71   autoreconf -ifv
74 build() {
75   cd $pkgname-$pkgver
76   ./configure --prefix=/usr \
77     --with-x \
78     --enable-startup-notification \
79     --sysconfdir=/etc \
80     --libexecdir=/usr/lib/openbox
81   make
84 package() {
85   cd $pkgname-$pkgver
86   make DESTDIR="$pkgdir" install
88   # GNOME Panel is no longer available in the official repositories
89   rm -r "$pkgdir"/usr/bin/{gdm-control,gnome-panel-control,openbox-gnome-session} \
90     "$pkgdir"/usr/share/gnome{,-session} \
91     "$pkgdir"/usr/share/man/man1/openbox-gnome-session.1 \
92     "$pkgdir"/usr/share/xsessions/openbox-gnome.desktop