aboutsummaryrefslogblamecommitdiffstats
path: root/nafe/PKGBUILD
blob: 8c27c190552f51a3c9432bc894b96759cc53413f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                                               



                                             
        
                                                                                                     
                                  

                      

                                                                                                                           

 










                                                                           



                                       
            




                                             
# Maintainer: Mattias Andrée <`base64 -d`(bWF0dGlhcy5hbmRyZWU)@protonmail.com>
# Previous maintainer: crshd <crshd@mail.com>

pkgname=nafe
pkgver=0.1
pkgrel=2
pkgdesc="Toolset to translate PSF format consolefonts into text files and text files into PSF files."
url="https://nafe.sourceforge.net"
arch=('x86_64' 'i686')
license=('GPL2')
source=("https://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('06d6a9b63f4acff046695c676633895e9d0ae95444de9273b126eace6677102b')


prepare () {
    cd "${srcdir}/${pkgname}-${pkgver}"

    printf '%s\n' '#include <stdlib.h>' | cat - txt2psf.c > txt2psf.c.fixed
    mv txt2psf.c.fixed txt2psf.c

    printf '%s\n' '#include <stdlib.h>' | cat - psf2txt.c > psf2txt.c.fixed
    mv psf2txt.c.fixed psf2txt.c
}

build () {
    cd "${srcdir}/${pkgname}-${pkgver}"
    make all
}

package () {
    cd "${srcdir}/${pkgname}-${pkgver}"
    mkdir -p -- "${pkgdir}/usr/bin"
    cp -- txt2psf psf2txt "${pkgdir}/usr/bin"
}