summaryrefslogtreecommitdiff
path: root/picom/Pkgfile
blob: 0aa9652a52068e209cf77bde19ac45bade76b3f5 (plain)
    1 # Description: A compositor for X, and a fork of xcompmgr-dana, and a fork of compton.
    2 # URL: https://github.com/yshui/picom
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: hicolor-icon-theme libconfig libev libxdg-basedir mesa3d xorg-libpixman xorg-xcb-util-image xorg-xcb-util-renderutil uthash dbus
    5 # Optional: asciidoc
    6 
    7 name=picom
    8 version=8
    9 release=1
   10 source=(https://github.com/yshui/picom/archive/v$version/$name-v$version.tar.gz
   11 	picom.conf picom-trans.1 picom.1)
   12 
   13 build() {
   14 [ -e '/usr/bin/asciidoctor' ] && PKGMK_PICOM+=' -D build_docs=true'
   15 
   16 	meson $name-$version build ${PKGMK_PICOM} \
   17 		--prefix=/usr \
   18 		-D b_ndebug=true
   19 
   20 	ninja -C build -j ${JOBS:-1}
   21 	DESTDIR=$PKG ninja -C build install
   22 
   23 	install -Dm644 $SRC/picom.conf $PKG/etc/xdg/picom.conf
   24 	install -Dm644 $name-$version/picom.sample.conf $PKG/etc/xdg/picom.conf.example
   25 
   26 [ -e '/usr/bin/asciidoctor' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/picom-trans.1 $SRC/picom.1
   27 }

Generated by cgit