mirror of
https://github.com/archlinux/aur.git
synced 2026-02-09 14:34:42 +01:00
Add ttf-digital-7.
This commit is contained in:
commit
869aca710b
3 changed files with 56 additions and 0 deletions
15
.SRCINFO
Normal file
15
.SRCINFO
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pkgbase = ttf-digital-7
|
||||
pkgdesc = A truetype font which is perfect for digital clocks.
|
||||
pkgver = 1.1
|
||||
pkgrel = 1
|
||||
url = http://www.styleseven.com
|
||||
install = ttf-digital-7.install
|
||||
arch = any
|
||||
license = custom
|
||||
depends = fontconfig
|
||||
depends = xorg-font-utils
|
||||
source = digital_7.zip::http://img.dafont.com/dl/?f=digital_7
|
||||
md5sums = fedbddce28f059e7468c7031d050623a
|
||||
|
||||
pkgname = ttf-digital-7
|
||||
|
||||
20
PKGBUILD
Normal file
20
PKGBUILD
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
pkgname=ttf-digital-7
|
||||
pkgver=1.1
|
||||
pkgrel=1
|
||||
url="http://www.styleseven.com"
|
||||
depends=('fontconfig' 'xorg-font-utils')
|
||||
pkgdesc="A truetype font which is perfect for digital clocks."
|
||||
arch=('any')
|
||||
license=('custom')
|
||||
source=(digital_7.zip::http://img.dafont.com/dl/?f=digital_7)
|
||||
install=$pkgname.install
|
||||
md5sums=('fedbddce28f059e7468c7031d050623a')
|
||||
|
||||
package() {
|
||||
cd $srcdir
|
||||
mkdir -p "${pkgdir}/usr/share/fonts/TTF"
|
||||
|
||||
install -Dm 644 digital-7*.ttf $pkgdir/usr/share/fonts/TTF/
|
||||
install -Dm 644 readme.txt $pkgdir/usr/share/licenses/$pkgname/license.txt
|
||||
}
|
||||
|
||||
21
ttf-digital-7.install
Normal file
21
ttf-digital-7.install
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
post_install() {
|
||||
echo -n "Updating font cache... "
|
||||
fc-cache -f > /dev/null
|
||||
mkfontscale /usr/share/fonts/TTF
|
||||
mkfontdir /usr/share/fonts/TTF
|
||||
echo "done."
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
post_install $1
|
||||
}
|
||||
|
||||
op=$1
|
||||
shift
|
||||
|
||||
$op $*
|
||||
|
||||
Loading…
Add table
Reference in a new issue