# Maintainer: Natanael Copa pkgname=samba-xbmc pkgver=3.5.5 pkgrel=0 pkgdesc="Samba for XMBC with less deps" url="http://www.samba.org" license="GPL3" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" makedepends="popt-dev" source="http://us1.samba.org/samba/ftp/stable/samba-$pkgver.tar.gz" _builddir="$srcdir"/samba-$pkgver prepare() { cd "$_builddir" } build() { cd "$_builddir"/source3 ./configure --prefix=/usr \ --sysconfdir=/etc/samba \ --with-configdir=/etc/samba \ --localstatedir=/var \ --with-lockdir=/var/cache/samba \ --with-piddir=/var/run/samba \ --with-logfilebase=/var/log/samba \ --with-privatedir=/var/run \ --enable-shared \ --disable-static \ --enable-shared-libs \ --enable-debug \ --disable-swat \ --disable-cups \ --disable-iprint \ --with-fhs \ --enable-pie \ --with-pthreads \ --with-sqlite3 \ --enable-relro \ --disable-dnssd \ $SMB_AVAHI \ --without-pam \ --without-ads \ --without-libtalloc \ --without-libtdb \ --without-libnetapi \ --with-cifsmount \ --with-cifsumount \ --without-ldap \ --without-acl-support \ --with-winbind \ --without-dnsupdate \ --without-automount \ --with-included-popt \ --with-libsmbclient \ --with-libsmbsharemodes \ --without-quotas \ --without-sys-quotas \ --with-syslog \ --with-utmp \ --with-sendfile-support make || return 1 } package() { cd "$_builddir"/source3 make DESTDIR="$pkgdir" install #mkdir -p "$pkgdir"/usr/bin "$pkgdir"/usr/lib #for i in smbtree mount.cifs umount.cifs; do # cp bin/"$i" "$pkgdir"/usr/bin #done } libs() { pkgdesc="Libs for xbmc samba" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ } md5sums="278728aeeef9db7e27fa6a2ce5b43509 samba-3.5.5.tar.gz"