forked from djmelik/archey
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from graysky2/master
proper git PKGBUILD
- Loading branch information
Showing
1 changed file
with
16 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,33 @@ | ||
# Maintainer: Laurie Clark-Michalek <bluepeppers@archlinux.us> | ||
# Contributer: graysky <graysky AT archlinux DOR us> | ||
|
||
pkgname=archey3 | ||
pkgver=20120517 | ||
pkgver=0.4.29.gb4cc4bb | ||
pkgrel=1 | ||
pkgdesc="Python script to display system infomation alongside the Arch Linux logo" | ||
pkgdesc="Python script to display system infomation alongside the Arch Linux logo." | ||
arch=('any') | ||
url="http://bluepeppers.github.com/archey3" | ||
license=('GPL') | ||
depends=('python') | ||
makedepends=('git' 'python-distribute') | ||
optdepends=( | ||
'python3-mpd-git: python mpd libary for mpd protocol (optional, mpc can be used instead)' | ||
'python-logbook-git: for logging' | ||
'imagemagick: for default screenshot command' | ||
'python3-mpd-git: python mpd libary for mpd protocol (optional, mpc can be used instead)' | ||
'python-logbook-git: for logging' | ||
'imagemagick: for default screenshot command' | ||
) | ||
conflicts=('archey') | ||
provides=('archey') | ||
md5sums=() | ||
source="git://github.com/bluepeppers/archey3.git" | ||
md5sums=('SKIP') | ||
|
||
_gitroot="git://github.com/bluepeppers/archey3.git" | ||
_gitname="archey3" | ||
|
||
build() { | ||
cd ${srcdir} | ||
msg "Connecting to GIT server...." | ||
|
||
if [ -d archey3 ] ; then | ||
cd archey3 && git pull origin | ||
msg "The local files are updated." | ||
else | ||
git clone ${_gitroot} | ||
fi | ||
|
||
msg "GIT checkout done or server timeout" | ||
msg "Starting make..." | ||
|
||
cd ${srcdir}/${_gitname} | ||
pkgver() { | ||
cd ${pkgname} | ||
git describe --always | sed 's|-|.|g' | ||
} | ||
|
||
package() { | ||
cd ${pkgname} | ||
python setup.py install --root=${pkgdir} | ||
# Comment line below to install side by side with standard archey | ||
ln -s /usr/bin/archey3 ${pkgdir}/usr/bin/archey || return 1 | ||
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/archey/COPYING | ||
ln -s /usr/bin/archey3 ${pkgdir}/usr/bin/archey | ||
install -D -m644 COPYING ${pkgdir}/usr/share/licenses/archey/COPYING | ||
} |