diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 58 | ||||
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | croco-i3-settings.install | 24 |
4 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ba564218af23 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = croco-i3-settings + pkgver = r2.c20daec + pkgrel = 1 + url = https://gitlab.com/croco-os/themes-and-settings/settings/croco-i3-settings + arch = any + license = GPL + makedepends = git + source = git+https://gitlab.com/croco-os/themes-and-settings/settings/croco-i3-settings.git#branch=master + sha256sums = SKIP + +pkgname = croco-i3-settings + pkgdesc = croco Linux i3 settings + install = croco-i3-settings.install + depends = croco-common-settings + provides = croco-desktop-settings + conflicts = croco-desktop-settings + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..deff105ce00e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: GiacoLenzo2109 <GiacoLenzo2109@gmail.com> +# Contributor: Librewish <librewish@gmail.com> + + +pkgbase=croco-i3-settings +_gitname=croco-i3-settings +pkgname=( + 'croco-i3-settings' + ) +pkgver=r2.c20daec +pkgrel=1 +arch=('any') +_branch='master' +url="https://gitlab.com/croco-os/themes-and-settings/settings/croco-i3-settings" +license=('GPL') +makedepends=('git') +source=("git+$url.git#branch=${_branch}") +sha256sums=('SKIP') + +_install() { + if [[ -d $srcdir/$_gitname/$1/etc ]]; then + install -d $pkgdir/etc + cp -rf $srcdir/$_gitname/$1/etc $pkgdir + fi + + if [[ -d $srcdir/$_gitname/$1/usr ]]; then + install -d $pkgdir/etc + cp -rf $srcdir/$_gitname/$1/usr $pkgdir + fi + + if [[ -d $srcdir/$_gitname/$1/skel ]]; then + install -d $pkgdir/etc + cp -rf $srcdir/$_gitname/$1/skel $pkgdir/etc + fi + +} + +pkgver() { + cd "$srcdir/croco-i3-settings" + +# Git, no tags available + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + +} + +package_croco-i3-settings() { + pkgdesc='croco Linux i3 settings' + depends=( + 'croco-common-settings' + ) + + install=croco-i3-settings.install + provides=('croco-desktop-settings') + conflicts=('croco-desktop-settings') + + _install '' +} + diff --git a/README.md b/README.md new file mode 100644 index 000000000000..497b0cf1c857 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# croco-i3-settings + +PKGBUILD for croco-i3-settings diff --git a/croco-i3-settings.install b/croco-i3-settings.install new file mode 100644 index 000000000000..5fdb84e020eb --- /dev/null +++ b/croco-i3-settings.install @@ -0,0 +1,24 @@ +msg() { + ALL_OFF="\e[1;0m" + BOLD="\e[1;1m" + GREEN="${BOLD}\e[1;32m" + local mesg=$1; shift + printf "${GREEN}==>${ALL_OFF}${BOLD} ${mesg}${ALL_OFF}" "$@" >&2 +} + +post_install() { +post_upgrade +} + +post_upgrade() { + echo -n "Updating font cache... " + mkfontscale /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1 + mkfontdir /usr/share/fonts/TTF /usr/share/fonts/OTF /usr/share/fonts/misc > /dev/null 2>&1 + fc-cache -s >/dev/null + echo "done" + glib-compile-schemas usr/share/glib-2.0/schemas + gtk-update-icon-cache -ftq usr/share/icons/hicolor + /bin/sh -c 'dconf update' +} + +# vim: ts=2 sw=2 et: |