Hi, some changes to compile and package correctly :
Allow to keep empty directories
options=('!strip' 'emptydirs')
Remove sed
instruction
prepare() { cd "${srcdir}/${pkgname}-${pkgver}"#sed -i '19,24 s/@[se]/$(DESTDIR)&/; /SQUIDUSER/d; 51d' Makefile.in patch -p0 -i "$srcdir/squidguard-1.6.0-gcc10.patch" }
You also can changes these parts :
Extend arch (arm works correctly)
arch=('any')
Remove logrotate
references,
replace squidGuard.conf
location :
#backup=('etc/logrotate.d/squidguard' 'etc/squidguard/squidGuard.conf.default') backup=('etc/squid/squidGuard.conf') (...) build() { cd "${srcdir}/${pkgname}-${pkgver}" ./autogen.sh ./configure \ --prefix=/usr \ --with-sg-config=/etc/squid/squidGuard.conf \ --with-sg-logdir=/var/log/squidGuard \ --with-sg-dbhome=/var/lib/squidGuard/db \make }
Replace squidguard.install
with inline instructions :
#install=${pkgname}.install (...) package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" installinstall -dm755 -o proxy -g proxy ${pkgdir}/var/log/squidGuard install -dm755 -o proxy -g proxy ${pkgdir}/var/lib/squidGuard }
Pinned Comments