summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Puntiy2018-01-20 23:00:03 +0200
committerIvan Puntiy2018-01-20 23:00:35 +0200
commit4d2ec082bcc4ace764fb28f447e82d9cee44f8ac (patch)
treeb8819fc8e9236e595713e6d9a8ca7917ba715aea
parent02994cc9144f24369cd0a169e346623794aa287f (diff)
downloadaur-4d2ec082bcc4ace764fb28f447e82d9cee44f8ac.tar.gz
Moved symlink into package.
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD4
-rw-r--r--culmus.install27
3 files changed, 4 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d099bf6dee06..ec2b11eb6549 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
diff --git a/PKGBUILD b/PKGBUILD
index 8c17c844113e..95c5557cef62 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
-}