Skip to content

Instantly share code, notes, and snippets.

@Lartza

Lartza/PKGBUILD Secret

Created September 1, 2018 10:02
Show Gist options
  • Save Lartza/4f91a4995827fdde488fc7cd3beb7bfa to your computer and use it in GitHub Desktop.
Save Lartza/4f91a4995827fdde488fc7cd3beb7bfa to your computer and use it in GitHub Desktop.
tint3-cpp-git PKGBUILD
# Maintainer: Lari Tikkanen <lartza@wippies.com>
pkgname=tint3-cpp-git
pkgver=0.3.0.r319.gd05689b
pkgrel=1
pkgdesc="A C++ rewrite attempt of the tint2 panel."
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/jmc-88/tint3"
license=('GPL2')
depends=('imlib2' 'pango' 'libxinerama' 'libxrandr' 'libxcomposite' 'startup-notification' 'hicolor-icon-theme' 'curl' 'libxdamage' 'xsettings-client' 'libc++')
makedepends=('git' 'cmake' 'pandoc' 'xorg-server-xvfb' 'xorg-xauth' 'xsettings-client' 'libc++')
source=('tint3::git+https://github.com/jmc-88/tint3.git'
'abseil-cpp::git+https://github.com/abseil/abseil-cpp.git')
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd "$srcdir/tint3"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/tint3"
git submodule init
git config submodule.abseil-cpp.url "$srcdir/abseil-cpp"
git submodule update
}
build() {
cd "$srcdir/tint3"
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make
}
package() {
make -C "$srcdir/tint3" DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment