· 9 years ago · Jan 12, 2017, 04:06 PM
1# Maintainer : chrisl echo archlinux@c2h0r1i2s4t5o6p7h8e9r-l3u4n1a.com|sed 's/[0-9]//g'
2# Maintainer: Dany Martineau <dany.luc.martineau gmail.com>
3# Contributor: Stefan Clarke <fm0nk3y@yahoo.co.uk>
4
5pkgname=shantz-xwinwrap-bzr
6pkgver=20090421
7pkgrel=3
8pkgdesc="Utility to play Movies on your Desktop Or ElectricSheep"
9[ "$CARCH" = "i686" ] && ARCH=x86
10[ "$CARCH" = "x86_64" ] && ARCH=x86_64
11arch=(i686 x86_64)
12url="http://tech.shantanugoel.com/projects/linux/shantz-xwinwrap"
13license=(Other/Open Source)
14depends=(libxext libxrender)
15provides=('xwinwrap')
16conflicts=('xwinwrap')
17makedepends=('bzr' 'make')
18
19source=()
20md5sums=()
21
22_bzrroot="lp:xwinwrap"
23_bzrmod="xwinwrap"
24
25build() {
26 cd ${srcdir}
27 msg "Connecting to launchpad BZR server...."
28 bzr branch $_bzrroot
29 cd $_bzrmod
30 if [ "$CARCH" == "i686" ]; then
31 make all32 || return 1
32 else
33 make all64 || return 1
34 fi
35}
36package() {
37 cd $_bzrmod
38 if [ "$CARCH" == "i686" ]; then
39 install -D -m0755 ${srcdir}/xwinwrap/i386/xwinwrap ${pkgdir}/usr/bin/xwinwrap || return 1
40 else
41 install -D -m0755 ${srcdir}/xwinwrap/x86_64/xwinwrap ${pkgdir}/usr/bin/xwinwrap || return 1
42 fi
43}