blob: d1fbe59365b8cdfd54225641c16d98be7c6d768d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# Maintainer: Gus deMayo <gus.demayo@gmail.com>
pkgname="desktop-dimmer"
fullpkgname="Desktop Dimmer"
pkgver=2.7.2
pkgrel=1
pkgdesc="Enables darker-than-dark Desktop dimming for your displays."
arch=("x86_64")
url="https://github.com/sidneys/${pkgname}"
license=("MIT")
source=("https://github.com/sidneys/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.pacman")
md5sums=("6D4BF707E3331C8E63B5A79CD14D3E73")
replace_str="\/opt\/${fullpkgname}\/${pkgname}"
package() {
cd "${srcdir}/"
install -dm755 "${pkgdir}/opt/"
install -dm644 "${pkgdir}/usr/share/applications/"
install -dm755 "${pkgdir}/usr/share/icons/"
cp -r "${srcdir}/opt/${fullpkgname}" "${pkgdir}/opt/"
cp -r "${srcdir}/usr/share/applications/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
cp -r "${srcdir}/usr/share/icons" "${pkgdir}/usr/share/"
mkdir -p "${pkgdir}/usr/bin"
ln -s "/opt/${fullpkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
sed -i "s/${replace_str}/${pkgname}/g" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
|