summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 23b7c9cd443e34df719d6456cdcc92abe9ebe970 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: Erwin
pkgname=nxfilter
pkgver=4.1.5
pkgrel=5
pkgdesc="NxFilter DNS filter"
arch=('i686' 'x86_64')
url=http://nxfilter.org/p3/
license=('custom')
depends=('java-runtime')
provides=("nxfilter")
source=("https://github.com/Erwinovitch/NxFilter/raw/master/Release/4.1.5/nxfilter.zip")
install='nxfilter.install'
md5sums=('SKIP')

package() {
	cd "$srcdir"
	mkdir -p "$pkgdir/usr"
	
	# Provides the init script for those whom need it
	cp -dr --no-preserve=ownership "$srcdir/nxfilter/etc"		"$pkgdir"

	# Provides the systemd scripts
	cp -dr --no-preserve=ownership "$srcdir/nxfilter/lib"	"$pkgdir/usr"

	# Provides the program itself
	cp -dr --no-preserve=ownership "$srcdir/nxfilter/nxfilter"	"$pkgdir"

	# remove zip file
	find $HOME/.cache -name "nxfilter.zip" -type f -exec rm "{}" \;

}