summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9639fe6f01be2be9b633bc38001cd714e01d5b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Melvin Laplanche <melvin.laplanche+pkgbuild[at]gmail[dot]com>

pkgname='plymouth-theme-asphyxia-git'
pkgver=20120923
pkgrel=1
pkgdesc='Plymouth theme featuring the famous asphyxia picture from starweaver'
arch=('any')
url='http://www.laplanche-melv.in'
license=('GPL')
depends=('plymouth')
makedepends=('git')
options=(!strip)

_gitroot="git://github.com/Nivl/plymouth-theme-asphyxia.git"
_gitname="plymouth-theme-asphyxia"

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"
}


package() {
	cd "${srcdir}/${_gitname}/asphyxia"
	install -m755 -d "${pkgdir}/usr/share/plymouth/themes/asphyxia"
	install -m644 -t "${pkgdir}/usr/share/plymouth/themes/asphyxia" *
}