summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlesh Slovak2019-01-26 15:02:45 -0500
committerAlesh Slovak2019-01-26 15:02:45 -0500
commitf52456b5e47d43a8c80e820295c607398cad9818 (patch)
treebdbcf32887253f1ab6a2444a3039ac70e38ec775 /PKGBUILD
downloadaur-f52456b5e47d43a8c80e820295c607398cad9818.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..64c504da466
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Alesh Slovak <aleshslovak@gmail.com>
+# Contributor: Scott Percival <code@moral.net.au>
+# Felix Schindler <felix at schindlerfamily dot de>
+# Christoph Haag <haagch@studi,informatik.uni-stuttgart.de>
+# WorMzy Tykashi <wormzy.tykashi@gmail.com>
+pkgname=steamos-compositor-plus
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Compositor used by SteamOS with some added tweaks and fixes"
+arch=('i686' 'x86_64')
+url="https://github.com/alkazar/steamos-compositor"
+license=('custom')
+depends=('libxfixes' 'libxext' 'libxcomposite' 'libxdamage' 'libxrender' 'libxxf86vm' 'sdl_image' 'libgl')
+makedepends=('mesa')
+conflicts=('steamos-compositor')
+_msver=1.10
+source=("git+https://github.com/alkazar/steamos-compositor#tag=$pkgver"
+ "http://repo.steamstatic.com/steamos/pool/main/s/steamos-modeswitch-inhibitor/steamos-modeswitch-inhibitor_${_msver}.tar.xz")
+md5sums=('SKIP'
+ 'ab8b731fb917aff183aa338bf3298495')
+
+prepare() {
+ cd "$srcdir/steamos-compositor"
+ autoreconf -i
+}
+
+build() {
+ export LIBS="-lXext -lXdamage -lXfixes"
+ cd "$srcdir/steamos-compositor"
+ ./configure --prefix=/usr
+ make
+ cd "$srcdir/steamos-modeswitch-inhibitor-$_msver"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/steamos-compositor"
+ make DESTDIR="$pkgdir/" install
+ install -m 755 "usr/bin/steamos-session" "$pkgdir/usr/bin"
+ sed -i "s|x86_64-linux-gnu/||g" "$pkgdir/usr/bin/steamos-session"
+ sed -i "s|lib/i386-linux-gnu/|lib32/|g" "$pkgdir/usr/bin/steamos-session"
+ mkdir -p "$pkgdir/usr/bin/steamos" "$pkgdir/usr/share/xsessions" "$pkgdir/usr/share/icons/steam"
+ install -m 755 "usr/bin/steamos/set_hd_mode.sh" "$pkgdir/usr/bin/steamos"
+ install -m 644 "usr/share/xsessions/steamos.desktop" "$pkgdir/usr/share/xsessions"
+ install -m 644 "usr/share/icons/steam/arrow.png" "$pkgdir/usr/share/icons/steam"
+ cd "$srcdir/steamos-modeswitch-inhibitor-$_msver"
+ make DESTDIR="$pkgdir/" install
+}
+