# Maintainer:  Bartłomiej Piotrowski <nospam@bpiotrowski.pl>

setvar pkgname = 'lxde-common'
setvar pkgver = '0.5.5'
setvar pkgrel = '0'
setvar pkgdesc = ''Common files of the LXDE Desktop''
setvar arch = ''noarch''
setvar url = ''http://lxde.org/''
setvar license = ''GPL2''
setvar depends = ''lxsession''
setvar source = ""http://downloads.sourceforge.net/lxde/${pkgname}-${pkgver}.tar.gz
        startlxde.patch""

proc prepare {
    cd "$srcdir"/$pkgname-$pkgver
    patch -Np0 -i $srcdir/startlxde.patch || return 1
}

proc build {
    cd "$srcdir"/$pkgname-$pkgver
    ./configure --sysconfdir=/etc --prefix=/usr || return 1
    make || return 1
}

proc package {
    cd "$srcdir"/$pkgname-$pkgver
    make DESTDIR="$pkgdir" install || return 1
    install -Dm644 lxde-logout.desktop \
      "$pkgdir"/usr/share/applications/lxde-logout.desktop || return 1
}
setvar md5sums = ""e51a6b2a815a89fda1f497b509465a97  lxde-common-0.5.5.tar.gz
11aca3bcc2ea8fa2c03e72056a52d1fc  startlxde.patch""
setvar sha256sums = ""ee18a09b64a442b33c1b54f0269649a1b4d9490460c400a07ed785d41bf6dde6  lxde-common-0.5.5.tar.gz
0b4192c52142369677d02474133a1da733a250a0e2ed9a4b55275428b90e38aa  startlxde.patch""
setvar sha512sums = ""44848286ccf3aa269df1680e14a8d3c41be1c2af956bd5121fc05d97a892fdc13d1e74191a2a11a40e96a8f31f8be37b1cfb9afeac4474fcab88d07508647c7f  lxde-common-0.5.5.tar.gz
dd25e91d9b350784b3434390c68ffaa763a966e0977c0a8ee57fe920c5793f2ecc42446ca332f294cc2e840f951099ab348f052f54ae9aac22d8e77d19f30919  startlxde.patch""