wyebadblock/PKGBUILD

35 lines
711 B
Bash
Raw Normal View History

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-04-26 14:44:56 +00:00
pkgrel=4
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')
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"
make
}
package() {
cd "$srcdir/wyebadblock"
2017-07-18 05:57:18 +00:00
install -Dm755 adblock.so "$pkgdir/usr/lib/wyebrowser/adblock.so"
2017-07-17 08:21:10 +00:00
}