summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 20 insertions, 19 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6a4a161e062..1d9a8317f8f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Contributor: Sara <sara at archlinux dot us>
# Maintainer: aksr <aksr at t-com dot me>
pkgname=fbpad-git
-pkgver=0.r261.d11a8ba
+pkgver=r269.dbf1a4f
pkgrel=1
pkgdesc="A small linux framebuffer virtual terminal."
arch=('i686' 'x86_64')
@@ -16,34 +16,32 @@ conflicts=('fbpad')
replaces=()
backup=()
options=()
-install=$pkgname.install
+install=${pkgname}.install
source=("$pkgname::git://repo.or.cz/fbpad.git"
- 'config.h'
- 'fbpad-256.info'
- 'LICENSE')
+ 'conf.h' 'fbpad-256.info' 'LICENSE')
noextract=()
md5sums=('SKIP'
- 'd81cdedda7b34c160212273e1554e2ac'
+ 'efe9649ca617e55d526921b0a9105c9e'
'185b9d6ec1c539213226a3e2509c7ccd'
'ec67f29a7dec10f86ef31515ed657a91')
sha1sums=('SKIP'
- '5db81b84caf6a4509f088619bfa700a6b438f600'
+ '4cd6b4cbf2c25626c4e4d60b21726d0baf6092d8'
'dbb816fe37faf0acb4e1a916d7493787c2b647fc'
'76a535243054e1fdd9caaa46a1571cd381d74353')
sha256sums=('SKIP'
- '8ca0f3f42e4ae83ad3ca7766c948bfa303f9501662558c76b6db684b61a9d13e'
+ '6f964a7b68108de13bcd4a8825a713c67a7a928a5f664406fd6e21fb0247178b'
'fb8ae049aa7d41fb285cbf7aa4487b28014273ebcfceefb4d58fb07018312e9c'
'0ea8d51c57a3a59ca57428b6fe9b47fdb1fde281fc1b095c9832872e85b09a72')
pkgver() {
cd $srcdir/$pkgname
- printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd $srcdir/$pkgname
## Custom config.h
- cp $srcdir/config.h config.h
+ cp $srcdir/conf.h conf.h
}
build() {
@@ -53,19 +51,22 @@ build() {
package() {
cd $srcdir/$pkgname
- install -Dm755 $srcdir/$pkgname/fbpad $pkgdir/usr/bin/fbpad
- install -Dm644 $srcdir/$pkgname/README $pkgdir/usr/share/doc/$pkgname/README
- install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ install -Dm755 ../$pkgname/fbpad $pkgdir/usr/bin/fbpad
+ install -Dm644 ../$pkgname/README $pkgdir/usr/share/doc/${pkgname%-*}/README
+ install -Dm644 ../LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
## Compile terminfo
mkdir -p $pkgdir/usr/share/terminfo
tic -x -o $pkgdir/usr/share/terminfo $srcdir/fbpad-256.info
+
## Setup fonts
- ft2tf /usr/share/fonts/TTF/DejaVuSansMono.ttf:6 >$srcdir/font.ttf
- ft2tf /usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf:6 >$srcdir/fonti.ttf
- ft2tf /usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf:6 >$srcdir/fontb.ttf
+ if [ -x /usr/bin/fbpad-mkfn ]; then FT2TF="fbpad-mkfn -h20 -w10"; SZ="17h120v100b0a1"; else FT2TF=ft2tf; SZ=6; fi
+ $FT2TF /usr/share/fonts/TTF/DejaVuSansMono.ttf:$SZ > $srcdir/font-r.tf
+ $FT2TF /usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf:$SZ > $srcdir/font-i.tf
+ $FT2TF /usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf:$SZ > $srcdir/font-b.tf
+
## Install fonts
- install -Dm644 $srcdir/font.ttf $pkgdir/usr/share/$pkgname/font.ttf
- install -Dm644 $srcdir/fonti.ttf $pkgdir/usr/share/$pkgname/fonti.ttf
- install -Dm644 $srcdir/fontb.ttf $pkgdir/usr/share/$pkgname/fontb.ttf
+ install -Dm644 ../font-r.tf $pkgdir/usr/share/${pkgname%-*}/font-r.tf
+ install -Dm644 ../font-i.tf $pkgdir/usr/share/${pkgname%-*}/font-i.tf
+ install -Dm644 ../font-b.tf $pkgdir/usr/share/${pkgname%-*}/font-b.tf
}