diff --git a/.gitignore b/.gitignore index 4833947..c6034b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ adblock.so librun.o wyebab +!wyebab/ testrun user.css diff --git a/PKGBUILD b/PKGBUILD index 1a2fa46..aca8f8f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,9 +1,10 @@ # Maintainer: jun7 pkgname=wyebadblock-git pkgver=1.1 -pkgrel=5 +pkgrel=6 pkgdesc="An adblock extension for webkit2gtk browsers." arch=('x86_64') +provides=('wyebab-git') url="https://github.com/jun7/wyebadblock" license=('GPL3') depends=('webkit2gtk') @@ -25,6 +26,7 @@ prepare() { build() { cd "$srcdir/wyebadblock" + DEBUG=0 make } diff --git a/PKGBUILDs/wyebab/PKGBUILD b/PKGBUILDs/wyebab/PKGBUILD new file mode 100644 index 0000000..fe88001 --- /dev/null +++ b/PKGBUILDs/wyebab/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: jun7 +pkgname=wyebab-git +pkgver=1.1 +pkgrel=1 +pkgdesc="An adblock command using the easylist.txt." +arch=('x86_64') +url="https://github.com/jun7/wyebadblock" +license=('GPL3') +depends=('glib2') +conflicts=('wyebadblock-git') +makedepends=('git') +_branch=master +source=("git://github.com/jun7/wyebadblock.git#branch=$_branch") +md5sums=('SKIP') + +pkgver(){ + cd "$srcdir/wyebadblock" + printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + cd "$srcdir/wyebadblock" + git pull --rebase origin $_branch + make clean +} + +build() { + cd "$srcdir/wyebadblock" + DEBUG=0 + make wyebab +} + +package() { + cd "$srcdir/wyebadblock" + install -Dm755 wyebab "$pkgdir/usr/bin/wyebab" +}