40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
|
|
# Maintainer: Bilal Elmoussaoui <bil.elmoussaoui@gmail.com>
|
|
|
|
_pkgbase=hardcode-tray-git
|
|
_gitname=Hardcode-Tray
|
|
pkgname=$_pkgbase
|
|
pkgver=4.0.r0.g8ec819f
|
|
pkgrel=1
|
|
pkgdesc="Fixes Hardcoded Tray Icons"
|
|
arch=('i686' 'x86_64')
|
|
url="https://github.com/bil-elmoussaoui/Hardcode-Tray"
|
|
license=('GPL-3.0')
|
|
provides=("$_pkgbase")
|
|
makedepends=("git")
|
|
conflicts=("hardcode-tray-fixer-git" "hardcode-tray")
|
|
makedepends=('ninja' 'meson')
|
|
depends=('python' 'python-gobject' 'python-cairosvg' 'librsvg' 'gtk3' 'gobject-introspection')
|
|
optdepends=('sni-qt-patched-git: patched qt4 sni plugin to enable icon modification' 'inkscape: to convert svg to png with inkscape')
|
|
optdepends_x86_64=('lib32-sni-qt-patched-git: 32-bit patched qt4 sni plugin to enable icon modification')
|
|
source=("git://github.com/bil-elmoussaoui/Hardcode-Tray")
|
|
sha256sums=('SKIP')
|
|
|
|
pkgver() {
|
|
cd "$srcdir/$_gitname"
|
|
( set -o pipefail
|
|
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
)
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/${_gitname}"
|
|
meson builddir --prefix=/usr
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/${_gitname}"
|
|
DESTDIR="${pkgdir}" ninja -C builddir install
|
|
}
|