From e5e674ede76d44c1777d7739c5acf69580f50729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Murat=20=C3=87ileli?= Date: Sun, 28 Apr 2019 15:19:14 +0300 Subject: [PATCH] Update 2019-04-28 15:19 --- PKGBUILD | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index a6bbc4b..75de273 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,28 +1,25 @@ # Maintainer: Murat Çileli -pkgbase="pkgbase" pkgname="adwaita-creamy" -pkgver="0.1" +pkgver="3.24.8" pkgrel="1" -pkgdesc="Refreshed new Adwaita theme with creamy colors and minor changes. " +pkgdesc="Refreshed new Adwaita theme with creamy colors and minor changes." arch=("x86_64") license=("MIT") url="https://github.com/murat-cileli/adwaita-creamy" makedepends=() provides=("adwaita-creamy") - -source=("git+https://github.com/murat-cileli/adwaita-creamy.git") +source=("$pkgname-$pkgver::https://github.com/murat-cileli/adwaita-creamy/archive/$pkgver.tar.gz") sha256sums=("SKIP") - -build() { - cd "${pkgname}" - mkdir -p ~/.themes/adwaita-creamy - cp gtk-2.0 ~/.themes/adwaita-creamy/ -R - cp gtk-3.0 ~/.themes/adwaita-creamy/ -R - cp index.theme ~/.themes/adwaita-creamy/ -} - +user_name="$(logname)" + package() { - echo "Package" -} + # Remove old version from user's home themes + rm -rf $pkgdir/home/${user_name}/.themes/$pkgname + + # Create directory + mkdir -p $pkgdir/usr/share/themes/$pkgname + # Copy contents + cp -r "$srcdir/$pkgname-$pkgver/." "$pkgdir/usr/share/themes/$pkgname" +}