diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-12-17 06:50:39 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-12-17 06:50:39 +0000 |
commit | 6f91e7dfe729fdb8517a16612d1924f818c20d03 (patch) | |
tree | 40b4ab2b8bd1c551a437434e3ff9c6bf8dce366a /main | |
parent | eb003dc69ed816f08868ef4ebdac899d013cff72 (diff) | |
download | aports-6f91e7dfe729fdb8517a16612d1924f818c20d03.tar.bz2 aports-6f91e7dfe729fdb8517a16612d1924f818c20d03.tar.xz |
main/xfce4-battery-plugin: fix musl build
Diffstat (limited to 'main')
-rw-r--r-- | main/xfce4-battery-plugin/APKBUILD | 11 | ||||
-rw-r--r-- | main/xfce4-battery-plugin/fix-includes.patch | 14 |
2 files changed, 23 insertions, 2 deletions
diff --git a/main/xfce4-battery-plugin/APKBUILD b/main/xfce4-battery-plugin/APKBUILD index fd824c90e7..07dc809b55 100644 --- a/main/xfce4-battery-plugin/APKBUILD +++ b/main/xfce4-battery-plugin/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=xfce4-battery-plugin pkgver=1.0.5 -pkgrel=0 +pkgrel=1 pkgdesc="A battery monitor plugin for the Xfce panel" url="http://goodies.xfce.org/projects/panel-plugins/xfce4-battery-plugin" arch="all" @@ -10,12 +10,14 @@ makedepends="xfce4-panel-dev libxfce4ui-dev perl-xml-parser intltool" install= subpackages="$pkgname-lang" source="http://archive.xfce.org/src/panel-plugins/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 + fix-includes.patch " _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" + find -name config.sub | xargs chmod u+w update_config_sub || return 1 for i in $source; do case $i in @@ -43,4 +45,9 @@ package() { make DESTDIR="$pkgdir" install rm "$pkgdir"/usr/lib/xfce4/panel/plugins/*.la } -md5sums="ca2d394e411a20442a519efa0d14f8ec xfce4-battery-plugin-1.0.5.tar.bz2" +md5sums="ca2d394e411a20442a519efa0d14f8ec xfce4-battery-plugin-1.0.5.tar.bz2 +f4d49568be25e3180288fe8c3d019e8c fix-includes.patch" +sha256sums="f659b1af40ab72c93448affaa693ab551827a5600ce9b97a799b7c2419bdeb11 xfce4-battery-plugin-1.0.5.tar.bz2 +383210ebe9b41d5bae9325991bfc9e5c9d272538a9ed46fb4cca0b5c0f24fa75 fix-includes.patch" +sha512sums="f49f33178a771b952442f498cee2c722146c9982cb27453e6547a7c7838eaa0a22588a7d2a56f189f7e9e7b90ed7e5ac7a4e6cfee55dc5e43d32c5ef95b20062 xfce4-battery-plugin-1.0.5.tar.bz2 +cd200c872b2baf6c1709c2d4b0f46b162a54a4513b5fa319c335ebeb1b5447a3563179634c3602e43ad5469912c9499c479bd02eae9ff08b48bad96f0a58c910 fix-includes.patch" diff --git a/main/xfce4-battery-plugin/fix-includes.patch b/main/xfce4-battery-plugin/fix-includes.patch new file mode 100644 index 0000000000..de78c8c835 --- /dev/null +++ b/main/xfce4-battery-plugin/fix-includes.patch @@ -0,0 +1,14 @@ +--- xfce4-battery-plugin-1.0.5.orig/panel-plugin/libacpi.c ++++ xfce4-battery-plugin-1.0.5/panel-plugin/libacpi.c +@@ -52,9 +52,10 @@ + #include <sys/sysctl.h> + #include <err.h> + #include <errno.h> +-#include <unistd.h> + + #endif ++ ++#include <unistd.h> + + #include "libacpi.h" + |