Commit 71b8d5c3 authored by tmpfile's avatar tmpfile Committed by Natanael Copa

community/jreen: modernize abuild

parent eb7050f0
......@@ -10,38 +10,23 @@ license="GPL2"
depends=""
depends_dev="qt-dev speex-dev libgsasl-dev"
makedepends="$depends_dev cmake"
install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/euroelessar/jreen/archive/v$pkgver.tar.gz"
_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
}
builddir="$srcdir"/$pkgname-$pkgver
build() {
mkdir -p "$_builddir"/build
cd "$_builddir"/build
cmake "$_builddir" \
mkdir -p "$builddir"/build
cd "$builddir"/build
cmake "$builddir" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
|| return 1
make || return 1
-DCMAKE_INSTALL_LIBDIR=lib
make
}
package() {
cd "$_builddir"/build
make DESTDIR="$pkgdir" install || return 1
cd "$builddir"/build
make DESTDIR="$pkgdir" install
}
md5sums="344d1d0b9b76ce64744c6d915ed125fa jreen-1.3.0.tar.gz"
sha256sums="f93c3d338c011c0945dacb14eb9da3be9541028c9eaa6f2024e688eb8a49b07e jreen-1.3.0.tar.gz"
sha512sums="7b8267aa7d0e18c28dfeb6a1c7c0495d87bd2712fe10a0c6283f0cf89b72d2c67f98f97a812c9f34496af43eb00ddd94b7e60e942634fb03d0119f94a3d08464 jreen-1.3.0.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment