aboutsummaryrefslogtreecommitdiffstats
path: root/main/conky/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2017-04-03 17:17:13 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2017-04-03 17:25:33 +0000
commita83069492c16ee81316380538acec99f38c99fd8 (patch)
tree5a9f9fdd8a8825a4ec8672b72698c752b98b5ee2 /main/conky/APKBUILD
parent8f50d23b8c9d1f27eb884b2c2a1f6ac3865c0965 (diff)
downloadaports-a83069492c16ee81316380538acec99f38c99fd8.tar.bz2
aports-a83069492c16ee81316380538acec99f38c99fd8.tar.xz
/main/conky: upgrade to 1.10.4, modernize APKBUILD
Diffstat (limited to 'main/conky/APKBUILD')
-rw-r--r--main/conky/APKBUILD27
1 files changed, 10 insertions, 17 deletions
diff --git a/main/conky/APKBUILD b/main/conky/APKBUILD
index b0c92f6511..37b63c28cc 100644
--- a/main/conky/APKBUILD
+++ b/main/conky/APKBUILD
@@ -6,29 +6,23 @@ pkgdesc="An advanced, highly configurable system monitor for X based on torsmo"
url="http://conky.sourceforge.net/"
arch="all"
license="custom"
-depends=""
makedepends="alsa-lib-dev libxml2-dev curl-dev wireless-tools-dev
libxft-dev glib-dev libxdamage-dev libxext-dev imlib2-dev lua5.2-dev
- cairo-dev tolua++ ncurses-dev linux-headers cmake gawk libxinerama-dev
- "
+ cairo-dev tolua++ ncurses-dev linux-headers cmake gawk libxinerama-dev"
+options="!check"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/brndnmtthws/conky/archive/v$pkgver.tar.gz"
+builddir="$srcdir"/$pkgname-$pkgver
-_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
- cd "$_builddir"
+ cd "$builddir"
update_config_sub || return 1
- local i
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
sed -i -e '32 iinclude(CheckIncludeFile)' CMakeLists.txt
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
cmake . \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -39,14 +33,13 @@ build() {
-DBUILD_WEATHER_METAR=ON \
-DBUILD_WEATHER_XOAP=ON \
-DBUILD_WLAN=ON \
- -DBUILD_I18N=OFF \
- || return 1
- make || return 1
+ -DBUILD_I18N=OFF
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
}