community/vdesk: modernize APKBUILD

This commit is contained in:
Roberto Oliveira 2017-07-07 18:09:06 +00:00 committed by Natanael Copa
parent b0868bb482
commit 935783b4b9

View File

@ -7,35 +7,22 @@ pkgdesc="vdesk is a virtual desktop manager."
url="http://offog.org/code/vdesk/" url="http://offog.org/code/vdesk/"
arch="all" arch="all"
license="MIT" license="MIT"
depends=""
depends_dev=""
makedepends="libx11-dev" makedepends="libx11-dev"
install=""
subpackages=""
source="http://offog.org/files/${pkgname}-${pkgver}.tar.gz" source="http://offog.org/files/${pkgname}-${pkgver}.tar.gz"
_builddir=${srcdir}/${pkgname}-${pkgver} builddir=${srcdir}/${pkgname}-${pkgver}
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() { build() {
cd "$_builddir" cd "$builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
--prefix=/usr || return 1 --prefix=/usr
make || return 1 make
} }
package() { package() {
cd "$_builddir" cd "$builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
} }