summaryrefslogtreecommitdiff
path: root/picom/Pkgfile
blob: ec95c38abe59998b5186fe2716268747fce9f05e (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 mesa xorg-libpixman xorg-xcb-util-image xorg-xcb-util-renderutil uthash dbus
    5 # Optional: asciidoc
    6 
    7 name=picom
    8 version=10
    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 with_docs=true'
   15 
   16 	meson setup build $name-$version ${PKGMK_PICOM} \
   17 		--prefix=/usr \
   18 		--buildtype=plain \
   19 		--wrap-mode nodownload \
   20 		-D b_lto=true \
   21 		-D b_pie=true
   22 
   23 	meson compile -C build -j ${JOBS:-1}
   24 	DESTDIR=$PKG meson install -C build
   25 
   26 	install -Dm644 $SRC/picom.conf $PKG/etc/xdg/picom.conf
   27 	install -Dm644 $name-$version/picom.sample.conf $PKG/etc/xdg/picom.conf.example
   28 
   29 [ -e '/usr/bin/asciidoctor' ] || install -D -m 0644 -t $PKG/usr/share/man/man1 $SRC/picom-trans.1 $SRC/picom.1
   30 }

Generated by cgit