aur/samba4: _pkgsrc must be defined inside build() to pick up srcdir

This commit is contained in:
Kevin Mihelich 2013-04-11 02:52:25 +00:00
parent db657f7c5e
commit 896239be39

View file

@ -27,12 +27,12 @@ options=(!makeflags)
source=(http://ftp.samba.org/pub/samba/stable/samba-${_realver}.tar.gz)
md5sums=('58ec2fec08872b72f8fd526f2da20a9e')
# Use samba-pkg as a staging directory for the split packages
# (This is so RPATHS and symlinks are generated correctly via
# make install, but the otherwise unsplit pieces can be split)
_pkgsrc=${srcdir}/samba-pkg
build() {
# Use samba-pkg as a staging directory for the split packages
# (This is so RPATHS and symlinks are generated correctly via
# make install, but the otherwise unsplit pieces can be split)
_pkgsrc=${srcdir}/samba-pkg
rm -rf ${_pkgsrc}
cd ${srcdir}/samba-${_realver}