Add PKGBUILD which only installs wyebab without the webkit2gtk's extension

This commit is contained in:
jun7 2018-05-30 01:32:47 +09:00
parent d66ead3160
commit 2f2bb085cd
3 changed files with 40 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
adblock.so adblock.so
librun.o librun.o
wyebab wyebab
!wyebab/
testrun testrun
user.css user.css

View File

@ -1,9 +1,10 @@
# Maintainer: jun7 <jun7@hush.com> # Maintainer: jun7 <jun7@hush.com>
pkgname=wyebadblock-git pkgname=wyebadblock-git
pkgver=1.1 pkgver=1.1
pkgrel=5 pkgrel=6
pkgdesc="An adblock extension for webkit2gtk browsers." pkgdesc="An adblock extension for webkit2gtk browsers."
arch=('x86_64') arch=('x86_64')
provides=('wyebab-git')
url="https://github.com/jun7/wyebadblock" url="https://github.com/jun7/wyebadblock"
license=('GPL3') license=('GPL3')
depends=('webkit2gtk') depends=('webkit2gtk')
@ -25,6 +26,7 @@ prepare() {
build() { build() {
cd "$srcdir/wyebadblock" cd "$srcdir/wyebadblock"
DEBUG=0
make make
} }

36
PKGBUILDs/wyebab/PKGBUILD Normal file
View File

@ -0,0 +1,36 @@
# Maintainer: jun7 <jun7@hush.com>
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"
}