2017-07-17 08:21:10 +00:00
|
|
|
# Maintainer: jun7 <jun7@hush.com>
|
2017-07-18 05:57:18 +00:00
|
|
|
pkgname=wyebadblock-git
|
2017-08-20 03:02:34 +00:00
|
|
|
pkgver=1.1
|
2018-05-29 16:32:47 +00:00
|
|
|
pkgrel=6
|
2017-07-18 09:45:45 +00:00
|
|
|
pkgdesc="An adblock extension for webkit2gtk browsers."
|
2017-07-17 08:21:10 +00:00
|
|
|
arch=('x86_64')
|
2018-05-29 16:32:47 +00:00
|
|
|
provides=('wyebab-git')
|
2017-07-17 08:21:10 +00:00
|
|
|
url="https://github.com/jun7/wyebadblock"
|
2017-07-18 05:57:18 +00:00
|
|
|
license=('GPL3')
|
2017-07-17 08:21:10 +00:00
|
|
|
depends=('webkit2gtk')
|
|
|
|
makedepends=('git')
|
2017-07-18 05:57:18 +00:00
|
|
|
_branch=master
|
|
|
|
source=("git://github.com/jun7/wyebadblock.git#branch=$_branch")
|
2017-07-17 08:21:10 +00:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver(){
|
|
|
|
cd "$srcdir/wyebadblock"
|
2017-08-03 00:45:41 +00:00
|
|
|
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
2017-07-17 08:21:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/wyebadblock"
|
2017-07-18 05:57:18 +00:00
|
|
|
git pull --rebase origin $_branch
|
2018-04-26 14:44:56 +00:00
|
|
|
make clean
|
2017-07-17 08:21:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/wyebadblock"
|
2018-05-29 16:32:47 +00:00
|
|
|
DEBUG=0
|
2017-07-17 08:21:10 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/wyebadblock"
|
2018-05-29 14:18:54 +00:00
|
|
|
install -Dm755 wyebab "$pkgdir/usr/bin/wyebab"
|
|
|
|
install -Dm755 adblock.so "$pkgdir/usr/lib/wyebrowser/adblock.so"
|
2017-07-17 08:21:10 +00:00
|
|
|
}
|