Created
February 8, 2015 03:56
-
-
Save zakkak/22e648e5d93420887488 to your computer and use it in GitHub Desktop.
PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Foivos S. Zakkak <foivos at zakkak dot net> | |
pkgname=gnome-shell-extension-workspace-grid | |
pkgver=1.3.2.r0.geab164c | |
pkgrel=1 | |
pkgdesc="Allows to configure your workspaces in a grid" | |
arch=('i686' 'x86_64') | |
url="https://github.com/zakkak/workspace-grid-gnome-shell-extension" | |
license=('unknown') | |
depends=('gnome-shell') | |
makedepends=('git') | |
install=gnome-shell-extension-workspace-grid.install | |
source=("$pkgname::git+https://github.com/zakkak/workspace-grid-gnome-shell-extension.git#tag=v1.3.2") | |
sha256sums=('SKIP') | |
pkgver() { | |
cd "$pkgname" | |
git describe --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' | |
} | |
package() { | |
cd "$pkgname" | |
_uuid='workspace-grid@mathematical.coffee.gmail.com' | |
install -Dm644 "${_uuid}/metadata.json" \ | |
"${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/metadata.json" | |
install -m644 "${_uuid}/extension.js" \ | |
"${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/extension.js" | |
install -m644 "${_uuid}/convenience.js" \ | |
"${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/convenience.js" | |
install -m644 "${_uuid}/prefs.js" \ | |
"${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/prefs.js" | |
install -m644 "${_uuid}/stylesheet.css" \ | |
"${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/stylesheet.css" | |
install -m644 "${_uuid}/ws-switch-arrow-left.png" \ | |
"${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/ws-switch-arrow-left.png" | |
install -m644 "${_uuid}/ws-switch-arrow-right.png" \ | |
"${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/ws-switch-arrow-right.png" | |
install -Dm644 "${_uuid}/schemas/org.gnome.shell.extensions.workspace-grid.gschema.xml" \ | |
"${pkgdir}/usr/share/glib-2.0/schemas/org.gnome.shell.extensions.workspace-grid.gschema.xml" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Foivos S. Zakkak <foivos at zakkak dot net> | |
pkgname=likwid-svn | |
pkgver=467M | |
pkgrel=1 | |
pkgdesc="Lightweight performance tools" | |
arch=('i686' 'x86_64') | |
url="http://likwid.googlecode.com" | |
license=('GPLv3') | |
depends=() | |
makedepends=('subversion' 'make' 'gcc') | |
optdepends=('perl: for likwid-mpirun and likwid-perfscope' | |
'openmpi: for likwid-mpirun' | |
'gnuplot: for likwid-perfscope' | |
'feedgnuplot-git: for likwid-perfscope') | |
source=("$pkgname::svn+http://likwid.googlecode.com/svn/trunk") | |
sha256sums=('SKIP') | |
conflicts=(likwid, feedgnuplot-git) | |
provides=('likwid-topology' | |
'likwid-perfctr' | |
'likwid-pin' | |
'likwid-bench' | |
'likwid-mpirun' | |
'likwid-powermeter' | |
'likwid-memsweeper' | |
'likwid-features') | |
pkgver() { | |
cd "$pkgname" | |
svnversion | |
} | |
build() { | |
cd "$pkgname" | |
sed -i -e "s,^\(PREFIX *= *\).*$,\1/usr#NOSPACE," \ | |
-e "s,^\(MANPREFIX *= *\$(PREFIX)\).*$,\1/share/man#NO SPACE," \ | |
-e "s,^\(ACCESSDAEMON *= *\$(PREFIX)\)/sbin\(.*\)$,\1/bin\2," config.mk | |
sed -i "s,/sbin,/bin," Makefile | |
make | |
} | |
package() { | |
cd "$pkgname" | |
make PREFIX="${pkgdir}/usr" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment