aboutsummaryrefslogtreecommitdiffstats
path: root/main/avahi-ui/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-05-14 14:55:45 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-05-14 15:05:23 +0000
commit79df80b23fcb065914d045cc68ebc355c5a7952d (patch)
treea936c2a1aa5c1231d4bc6202d76c3d708dabe156 /main/avahi-ui/APKBUILD
parentd47fd4efdbbbb95011b1001c2053413310a061a4 (diff)
downloadaports-79df80b23fcb065914d045cc68ebc355c5a7952d.tar.bz2
aports-79df80b23fcb065914d045cc68ebc355c5a7952d.tar.xz
main/avahi-ui: new aport
We splitted out the ui libs and tools to avoid the circular deps: avahi -> gtk -> cups -> avahi
Diffstat (limited to 'main/avahi-ui/APKBUILD')
-rw-r--r--main/avahi-ui/APKBUILD107
1 files changed, 107 insertions, 0 deletions
diff --git a/main/avahi-ui/APKBUILD b/main/avahi-ui/APKBUILD
new file mode 100644
index 0000000000..146e1a0c73
--- /dev/null
+++ b/main/avahi-ui/APKBUILD
@@ -0,0 +1,107 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=avahi-ui
+pkgver=0.6.31
+pkgrel=5
+pkgdesc="Gtk user interface library for Avahi"
+url="http://www.avahi.org/"
+arch="all"
+license="LGPL2+"
+depends=""
+depends_dev="gtk+3.0-dev gtk+2.0-dev gdbm-dev avahi-dev"
+makedepends="$depends_dev py-gobject3-dev py-gtk-dev py-dbus-dev intltool
+ gobject-introspection-dev expat-dev libdaemon-dev glib-dev dbus-dev
+ libcap-dev py-gdbm
+ autoconf automake libtool"
+install=""
+subpackages="$pkgname-dev $pkgname-tools $pkgname-gtk3"
+patches="musl-fix.patch
+ avahi-0.6.31-no-deprecations.patch
+ system-avahi.patch"
+source="http://www.avahi.org/download/avahi-$pkgver.tar.gz
+ $patches
+ gnome-nettool.png"
+
+_subdirs="avahi-ui avahi-python"
+_builddir="$srcdir"/avahi-$pkgver
+prepare() {
+ cd "$_builddir"
+ for i in $patches; do
+ patch -p1 -i "$srcdir"/$i || return 1
+ done
+ update_config_sub || return 1
+ libtoolize --force && aclocal -I m4 && autoconf \
+ && automake --add-missing
+}
+
+build() {
+ cd "$_builddir"
+ # we dont build autoipd since dhcpcd does same job
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-autoipd \
+ --disable-qt3 \
+ --disable-qt4 \
+ --enable-gtk3 \
+ --disable-mono \
+ --disable-monodoc \
+ --disable-doxygen-doc \
+ --disable-xmltoman \
+ --disable-compat-libdns_sd \
+ --disable-compat-howl \
+ --with-distro="gentoo" \
+ --with-systemdsystemunitdir=/lib/systemd/system \
+ --disable-static \
+ --enable-shared \
+ || return 1
+ for i in $_subdirs; do
+ (cd $i && make) || return 1
+ done
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/bin || return 1
+ for i in avahi-ui avahi-python; do
+ ( cd $i && make DESTDIR="$pkgdir" install) || return 1
+ done
+ rm -r "$pkgdir"/usr/lib/*.la \
+ "$pkgdir"/usr/lib/py* || return 1
+}
+
+tools() {
+ pkgdesc="UI tools for mDNS browsing"
+ depends="py-gtk py-dbus py-gdbm py-avahi"
+ mkdir -p "$subpkgdir"/usr/bin
+ cd "$pkgdir"/usr/bin
+ mv avahi-bookmarks avahi-discover avahi-discover-standalone b* \
+ "$subpkgdir"/usr/bin/
+ install -D -m 644 "$srcdir"/gnome-nettool.png \
+ "$subpkgdir"/usr/share/pixmaps/gnome-nettool.png
+}
+
+gtk3() {
+ pkgdesc="Gtk3 user interface library for Avahi"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libavahi-ui-gtk3.so.* \
+ "$subpkgdir"/usr/lib/
+}
+
+md5sums="2f22745b8f7368ad5a0a3fddac343f2d avahi-0.6.31.tar.gz
+9557450128d0e4324405af2c625dc8c7 musl-fix.patch
+c3f9cdb20bfbaa575f86e2fe4a7783bf avahi-0.6.31-no-deprecations.patch
+880936938b6793b5fe675622eb513838 system-avahi.patch
+42c2905307c7a5dc6ac4b75f4c3d65a3 gnome-nettool.png"
+sha256sums="8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48 avahi-0.6.31.tar.gz
+c43a60cf9cddb3cc8c88c13d78dbf0c6a7f1e3ff1f73e1305d465547cadd6a58 musl-fix.patch
+a30a5c3fbf07e1035021f92735ef7cbfbfd6e5a2324daca4cd034321f037ec9d avahi-0.6.31-no-deprecations.patch
+7731752997475c358129d6f716b1b76e715642c21184844666f51a3b040a12d8 system-avahi.patch
+88cbac3316fd0ad10bb7d054dcd53ab822517a1d9bbb70a31cd754dcd59e94b9 gnome-nettool.png"
+sha512sums="53eb00d570a274d841e1e6ad07da077950089ae39b4f7aa21fcd21cc5320b30b506b43e7e57e56198e155cc7bd289b779a48b2b2fc002dc6194a946110451858 avahi-0.6.31.tar.gz
+09ae19b3c8641cdbeaabf1af69852e297d7445dfaf259b43d9de8a04c5d31722ecb2fb921feb44925a5364e69bd514c47be90f532493b087879abf9f53a8fe11 musl-fix.patch
+488699dd1d3cc39c4efc972ac6e9afa306208a23fe028454951c8009a34f974dbd19f16d6737bfea93660559728080508e06e32de0718db4f2dda9624031002a avahi-0.6.31-no-deprecations.patch
+99723e66889601044ac5ca919e79aa328083cb377bb3d270f3e8d2baee27505f967949f72faa0424756e5f18b1359fd7f7fb30636861d47455ff7b92ed48bcfa system-avahi.patch
+d8e92fcdd82759f8de536ebfa356fe208c27b2d998ce5bb51d585dffc163dc16228be4a7108644fe1a11defbe750244bc8105a430b1397297cdef4cb83ab0db5 gnome-nettool.png"