diff options
author | Ian Laird | 2015-11-04 15:23:41 -0700 |
---|---|---|
committer | Ian Laird | 2015-11-04 15:23:41 -0700 |
commit | aae948d9741ae7ad5b6f45cffcdafc776d00c225 (patch) | |
tree | d7fc2e3904225f9800c0bf547304952767e502a6 | |
download | aur-aae948d9741ae7ad5b6f45cffcdafc776d00c225.tar.gz |
First import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 49 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7a849d162e22 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = slim-theme-mesos-git + pkgdesc = Apache Mesos SLiM theme. + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/en0/SLiM-theme-mesos + arch = any + license = unkonwn + makedepends = git + optdepends = slim: login manager providing theme support + provides = slim-theme-mesos + conflicts = slim-theme-mesos + source = git://github.com/en0/SLiM-theme-mesos + md5sums = SKIP + +pkgname = slim-theme-mesos-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0fddd17991eb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,49 @@ +# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines +# for more information on packaging from GIT sources. + +# Maintainer: Your Name <youremail@domain.com> +pkgname=slim-theme-mesos-git +pkgver=1.0 +pkgrel=1 +pkgdesc="Apache Mesos SLiM theme." +arch=('any') +url="https://github.com/en0/SLiM-theme-mesos" +license=('unkonwn') +optdepends=('slim: login manager providing theme support') +makedepends=('git') +install= +conflicts=('slim-theme-mesos') +provides=('slim-theme-mesos') +source=('git://github.com/en0/SLiM-theme-mesos') +md5sums=('SKIP') + +_gitroot=$url +_gitname=SLiM-theme-mesos + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [[ -d "$_gitname" ]]; then + cd "$_gitname" && git pull origin + msg "The local files are updated." + else + git clone "$_gitroot" "$_gitname" + fi + + msg "GIT checkout done or server timeout" + msg "Starting build..." + + rm -rf "$srcdir/$_gitname-build" + git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" +} + +package() { + cd "$srcdir/$_gitname" + install -m 644 -D background.png "${pkgdir}"/usr/share/slim/themes/mesos/background.png + install -m 644 -D panel.png "${pkgdir}"/usr/share/slim/themes/mesos/panel.png + install -m 644 -D slim.theme "${pkgdir}"/usr/share/slim/themes/mesos/slim.theme + install -m 644 -D preview.png "${pkgdir}"/usr/share/slim/themes/mesos/preview.png +} + +# vim:set ts=2 sw=2 et: |