updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / uqx / PKGBUILD
blob66e389b2a282958b2520b1cc151589a8b8e9c12f
1 # Maintainer: Jason Pierce <`echo 'moc tod liamg ta nosaj tod ecreip' | rev`>
2 # Contributor: Jason Pierce <`echo 'moc tod liamg ta nosaj tod ecreip' | rev`>
3 pkgname=uqx
4 pkgver=0.1
5 pkgrel=1
6 pkgdesc="Update Qingy Xsessions, for the session selection menu."
7 arch=( 'i686' 'x86_64' )
8 url="http://pg.projects.wholebean.info/uqx"
9 license=('MIT')
10 install="uqx.install"
11 depends=( 'bash' 'grep' 'coreutils' 'dash' )
12 optdepends=( 'qingy: If you find a use for this, without qingy, please inform the maintainer.' )
13 makedepends=( 'gcc' )
14 source=( "http://dl.projects.wholebean.info/$pkgname/$pkgname-$pkgver.tar.bz2")
15 md5sums=('57ecaa8d07b9e34abb474f451a591d3f')
17 build() {
18         cd $srcdir
20         mkdir -p $pkgdir/usr/bin
21         mkdir -p $pkgdir/usr/share/$pkgname
22         mkdir -p $pkgdir/usr/share/applications
23         mkdir -p $pkgdir/usr/share/pixmaps
24         mkdir -p $pkgdir/usr/share/licenses/$pkgname
25         mkdir -p $pkgdir/usr/share/docs/uqx
26         mkdir -p $pkgdir/etc/qingy/xsessions
27         mkdir -p $pkgdir/etc/qingy/sessions
29         gcc -o uqx uqx.c
31         mv ./${pkgname}.sh $pkgdir/usr/share/$pkgname/
32         mv ./${pkgname}.desktop $pkgdir/usr/share/applications/
33         mv ./${pkgname}.png $pkgdir/usr/share/pixmaps/
34         mv ./COPYING $pkgdir/usr/share/licenses/$pkgname
35         mv ./README $pkgdir/usr/share/docs/uqx/
36         mv ./${pkgname} $pkgdir/usr/bin/$pkgname
38         chmod 755 $pkgdir/usr/share/$pkgname/${pkgname}.sh
39         chmod 755 $pkgdir/usr/bin/$pkgname
40         chmod u+s $pkgdir/usr/bin/$pkgname
42         ln -s /usr/bin/$pkgname $pkgdir/etc/qingy/sessions/Update_Qingy_Xsessions