aboutsummaryrefslogblamecommitdiffstats
path: root/community/phodav/APKBUILD
blob: df0930ffcd46d7c2aabde25ddc1b0993a4027d39 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   
          
        
                                     

                                   
                           
                                


                                                                                            
                                                                               
                           
         

         
                      
                                 
                                    

                                
                               


           
                                                              
 
                                        







                                                





                                                                        



                                                  
                                      

 



                                                                        
                                                                                   
 
 
                                                                                                                                                               
                                                                                                                                                      
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=phodav
pkgver=2.5
pkgrel=0
pkgdesc="WebDAV server using libsoup"
url="https://wiki.gnome.org/phodav"
arch="all"
license="LGPL-2.0-or-later"
options="!check" # No test suite
makedepends="asciidoc attr-dev avahi-dev eudev-dev gtk-doc intltool libsoup-dev meson xmlto"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang chezdav chezdav-doc:chezdav_doc
	spice-webdavd:spice spice-webdavd-openrc:spice_openrc"
source="https://download.gnome.org/sources/phodav/$pkgver/phodav-$pkgver.tar.xz
	spice-webdavd.initd
	"

build() {
	abuild-meson \
		-Davahi=enabled \
		-Dsystemd=disabled \
		-Dudev=enabled \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	rm -rf "$pkgdir"/usr/lib/systemd
}

chezdav() {
	pkgdesc="A simple WebDAV server program"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

chezdav_doc() {
	pkgdesc="A simple WebDAV server program (documentation)"
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/../phodav-doc/usr/share/man "$subpkgdir"/usr/share/
}

spice() {
	pkgdesc="Spice daemon for the DAV channel"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/sbin "$subpkgdir"/usr/
	mv "$pkgdir"/lib "$subpkgdir"/
}

spice_openrc() {
	pkgdesc="Spice daemon for the DAV channel (OpenRC init scripts)"
	install_if="spice-webdavd openrc"
	mkdir -p "$subpkgdir"/etc/init.d
	install "$srcdir"/spice-webdavd.initd "$subpkgdir"/etc/init.d/spice-webdavd
}

sha512sums="4b6cd6a40118bf9c042abcfc3e7cb593b620922aae4dd3daf77682bf9da2030a0958bc0206531d5950f85551ef8f5da21fb21c54b9bd5e56b880f54e0983bc01  phodav-2.5.tar.xz
1e10314f831840d9f54f38163bd518f42a378fe27b508639771b82610b4a434d4ec56c70a334dbfc7c8cd91160ba346751978f511c522577803248205dbcd211  spice-webdavd.initd"