add srandrd

This commit is contained in:
joborun linux 2024-04-26 15:24:45 +03:00
parent a51ebc3aea
commit 17fe7fe13f
5 changed files with 75 additions and 0 deletions

40
srandrd/PKGBUILD Normal file
View File

@ -0,0 +1,40 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=srandrd
pkgver=0.6.3
pkgrel=02
pkgdesc="Simple randr daemon that reacts to monitor hotplug events"
url="https://github.com/jceb/srandrd/"
provides=('srandrd')
makedependencies=('libx11' 'libxrandr' 'libxinerama')
source=(https://github.com/jceb/${pkgname}/archive/v${pkgver}.tar.gz)
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
depends=('libxrandr' 'libxinerama')
make DESTDIR="${pkgdir}" install
install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('custom:MIT/X')
md5sums=(8312ae0aa4a05897bdcd3d1d849f647b) # v0.6.3.tar.gz
sha256sums=(d59a4c5eb611378b5efaca9c2b554934265da0ea1ec72fddef3368f270eeb520) # v0.6.3.tar.gz
## c4f7120f595b386e6167da4d471004c4bc7d6603c874f711f03cd00dd1590bed srandrd-0.6.3-02-x86_64.pkg.tar.lz

25
srandrd/PKGBUILD-aur Normal file
View File

@ -0,0 +1,25 @@
# Maintainer: Pig Monkey <pm@pig-monkey.com>
#
# Contributor: portix <portix at gmx.net>
pkgname=srandrd
pkgver=0.6.0
pkgrel=2
pkgdesc="Simple randr daemon that reacts to monitor hotplug events"
arch=('i686' 'x86_64')
url="https://github.com/jceb/srandrd/"
license=('custom:MIT/X')
depends=('libxrandr' 'libxinerama')
provides=('srandrd')
source=(https://github.com/jceb/${pkgname}/archive/v${pkgver}.tar.gz)
md5sums=('91041c39b46e7c8e8f7401a74cdaab10')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

1
srandrd/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,v*.tar.gz}

3
srandrd/deps Normal file
View File

@ -0,0 +1,3 @@
libx11
libxrandr
libxinerama

6
srandrd/time Normal file
View File

@ -0,0 +1,6 @@
real 0m2.138s
user 0m1.835s
sys 0m0.478s