blob: c832ca9e8843e2b9b6f23929279471db91437a32 (
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
|
# Maintainer: 00ein00
# Contributor: Brijesh <brijeshsundi@gmail.com>
# shellcheck shell=bash disable=SC2034,SC2154
pkgname=spotx-git
pkgver=r226+g37ffdc78b
pkgrel=1
pkgdesc="SpotX Bash Script | Block all audio, banner & video ads | Block logging"
arch=('any')
url="https://github.com/SpotX-Official/SpotX-Bash"
license=('MIT')
depends=(perl zip unzip)
makedepends=('git')
provides=(spotx)
conflicts=(spotx)
source=("${pkgname}::git+https://github.com/SpotX-Official/SpotX-Bash.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
printf "r%s+g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=9 HEAD)"
}
package() {
install -Dm644 "${startdir}/spotx.hook" "${pkgdir}/usr/share/libalpm/hooks/spotx.hook"
cd "${srcdir}/${pkgname}"
install -Dm755 spotx.sh "${pkgdir}/usr/bin/spotx"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|