browser-select/AUR/PKGBUILD

32 lines
904 B
Bash
Raw Permalink Normal View History

pkgrel=1
pkgver=r1.7c36a34
pkgname="shimatta-browser-select"
depends=('python' 'python-appdirs' 'python-toml')
makedepends=('git')
provides=('shimatta-browser-select')
arch=('any')
license=('MIT')
pkgdesc="Python wrapper that redirects different URLs to different browsers"
url="https://git.shimatta.de/mhu/browser-select"
source=("$pkgname"::"git+https://git.shimatta.de/mhu/browser-select.git")
sha1sums=('SKIP')
pkgver () {
cd "${srcdir}/${pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build () {
echo "Nothing to build"
}
package () {
cd "${srcdir}/${pkgname}"
install -D -m664 "$srcdir/$pkgname/browser_select.desktop" \
"$pkgdir/usr/share/applications/browser_select.desktop"
install -D -m775 "$srcdir/$pkgname/browser_select.py" \
"$pkgdir/usr/bin/browser_select.py"
}