diff options
author | Ivan Puntiy | 2018-01-20 23:00:03 +0200 |
---|---|---|
committer | Ivan Puntiy | 2018-01-20 23:00:35 +0200 |
commit | 4d2ec082bcc4ace764fb28f447e82d9cee44f8ac (patch) | |
tree | b8819fc8e9236e595713e6d9a8ca7917ba715aea | |
parent | 02994cc9144f24369cd0a169e346623794aa287f (diff) | |
download | aur-4d2ec082bcc4ace764fb28f447e82d9cee44f8ac.tar.gz |
Moved symlink into package.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | culmus.install | 27 |
3 files changed, 4 insertions, 30 deletions
@@ -1,11 +1,10 @@ # Generated by mksrcinfo v8 -# Sat Jan 20 20:54:24 UTC 2018 +# Sat Jan 20 21:00:17 UTC 2018 pkgbase = culmus pkgdesc = A collection of Type1 and TrueType Hebrew fonts pkgver = 0.132 pkgrel = 1 url = http://culmus.sourceforge.net - install = culmus.install arch = any license = GPL2 depends = fontconfig @@ -9,7 +9,6 @@ arch=('any') url="http://culmus.sourceforge.net" license=('GPL2') depends=('fontconfig' 'xorg-fonts-alias' 'xorg-font-utils' 'xorg-fonts-encodings') -install=${pkgname}.install source=( "http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz" "$pkgname-0.121-fontconfig_fix.patch" @@ -39,4 +38,7 @@ package() { install -d ${pkgdir}/etc/fonts/conf.avail/ install -m644 ${srcdir}/culmus-$pkgver/culmus.conf \ ${pkgdir}/etc/fonts/conf.avail/61-culmus.conf + + # symlink for the abovementioned config file + ln -fs "../conf.avail/61-culmus.conf" "${pkgdir}/etc/fonts/conf.d" } diff --git a/culmus.install b/culmus.install deleted file mode 100644 index e15cb0e6c0cd..000000000000 --- a/culmus.install +++ /dev/null @@ -1,27 +0,0 @@ -configs=('61-culmus.conf') - -post_install() { - pushd /etc/fonts/conf.d > /dev/null - for config in "${configs[@]}"; do - ln -sf ../conf.avail/${config} . - done - popd > /dev/null -} - -post_upgrade() { - if [ "`vercmp 0.102-1 $2`" != "-1" ] || [ ! -L /etc/fonts/conf.d/61-culmus.conf ]; then - pushd /etc/fonts/conf.d > /dev/null - for config in "${configs[@]}"; do - ln -sf ../conf.avail/${config} . - done - popd > /dev/null - fi -} - -post_remove() { - pushd /etc/fonts/conf.d > /dev/null - for config in "${configs[@]}"; do - rm -f ${config} - done - popd > /dev/null -} |