This commit is contained in:
Chakib Benziane 2020-07-30 16:07:33 +01:00
parent 8164bb242a
commit 3042ec830f
3 changed files with 66 additions and 0 deletions

21
cdm-git/.SRCINFO Normal file
View File

@ -0,0 +1,21 @@
pkgbase = cdm-git
pkgdesc = The Console Display Manager
pkgver = r144.719b4a5
pkgrel = 2
epoch = 1
url = https://github.com/ghost1227/cdm
arch = any
license = GPL
makedepends = git
depends = dialog
depends = xorg-xinit
depends = xorg-xdpyinfo
depends = kbd
provides = cdm
conflicts = cdm
backup = etc/cdmrc
source = git://github.com/ghost1227/cdm.git
md5sums = SKIP
pkgname = cdm-git

4
cdm-git/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.pkg.tar.xz
/cdm
/pkg
/src

41
cdm-git/PKGBUILD Normal file
View File

@ -0,0 +1,41 @@
# Maintainer: Alex Kubica <alexkubicail@gmail.com>
# Contributor: Faule Socke <github@socker.lepus.uberspace.de>
# Contributor: Jakub Klinkovský <kuba.klinkovsky@gmail.com>
# Contributor: Adlai Chandrasekhar <munchking@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Mark Foxwell <fastfret79@archlinux.org.uk>
pkgname=cdm-git
_pkgname="cdm"
pkgver=r144.719b4a5
pkgrel=2
pkgdesc="The Console Display Manager"
arch=('any')
url="https://github.com/ghost1227/cdm"
license=('GPL')
makedepends=('git')
depends=('dialog' 'xorg-xinit' 'xorg-xdpyinfo' 'kbd')
provides=('cdm')
conflicts=('cdm')
backup=('etc/cdmrc')
source=('git://github.com/ghost1227/cdm.git')
md5sums=('SKIP')
epoch=1
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
install -d ${pkgdir}/{usr/{bin,share/{doc/cdm,cdm/themes}},etc/profile.d}
cd "$srcdir/$_pkgname"
install -Dm644 -T README.md "$pkgdir/usr/share/doc/cdm/README"
install -Dm644 -t "$pkgdir/usr/share/cdm/themes" themes/*
cd "$srcdir/$_pkgname/src"
install -Dm755 -t "$pkgdir/usr/bin" cdm cdm-xlaunch
install -Dm644 -t "$pkgdir/etc" cdmrc
install -Dm755 -T profile.sh "$pkgdir/etc/profile.d/zzz-cdm.sh"
}