xfce-session-target/PKGBUILD

33 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2022-09-04 21:23:19 -04:00
# Maintainer: Eric Renfro <psi-jack@linux-help.org>
2022-09-09 19:09:57 -04:00
_pkgbase=xfce-session-target
pkgname=${_pkgbase}-git
2022-09-04 21:23:19 -04:00
pkgdesc='systemd Integration for xfce-session'
pkgver=1.3.1
2022-09-09 19:09:57 -04:00
pkgrel=1
2022-09-04 21:23:19 -04:00
arch=('any')
2022-09-09 19:09:57 -04:00
url="https://git.linux-help.org/infusix/${_pkgbase}"
2022-09-04 21:23:19 -04:00
license=('GPL')
2022-09-09 19:09:57 -04:00
makedepends=('coreutils' 'git')
source=("${_pkgbase}::git+https://git.linux-help.org/infusix/${_pkgbase}.git")
2022-09-04 21:23:19 -04:00
sha256sums=('SKIP')
2022-09-09 19:09:57 -04:00
depends=('xfce4-session' 'systemd')
#install=${_pkgbase}.install
pkgver() {
cd "${srcdir}/${_pkgbase}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
2022-09-04 21:23:19 -04:00
package() {
install -d ${pkgdir}/usr/lib/xfce4/session
install -d ${pkgdir}/usr/lib/systemd/user
install -d ${pkgdir}/etc/xdg/autostart
install -d ${pkgdir}/usr/share/doc/${pkgname}
cp -f ${srcdir}/${_pkgbase}/src/*.sh ${pkgdir}/usr/lib/xfce4/session/
cp -f ${srcdir}/${_pkgbase}/src/*.target ${pkgdir}/usr/lib/systemd/user/
cp -f ${srcdir}/${_pkgbase}/src/*.desktop ${pkgdir}/etc/xdg/autostart/
cp -f ${srcdir}/${_pkgbase}/README $srcdir/${_pkgbase}/LICENSE ${pkgdir}/usr/share/doc/$pkgname/
cp -fR ${srcdir}/${_pkgbase}/examples ${pkgdir}/usr/share/doc/${pkgname}/
2022-09-04 21:23:19 -04:00
}