xfce-session-target/PKGBUILD

31 lines
1,010 B
Bash
Raw 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'
2022-09-09 19:09:57 -04:00
pkgver=1.3.0.r0.g577cf34
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}-v$pkgver.tar.gz::$url/archive/${_pkgbase}-v$pkgver.tar.gz")
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
2022-09-04 23:01:33 -04:00
install -d $pkgdir/usr/lib/systemd/user
2022-09-04 21:54:33 -04:00
install -d $pkgdir/etc/xdg/autostart
2022-09-09 19:09:57 -04:00
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/
2022-09-04 21:23:19 -04:00
}