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


                                                                               

                                         

              
                                                             
                                                                                                                                             

         



                        


                  
         
                       

                        

           
                       
                                            
 
# Maintainer: Mattias Andrée <`base64 -d`(bWF0dGlhcy5hbmRyZWU)@protonmail.com>
pkgname=xtest
pkgver=2.1.2
pkgrel=1
pkgdesc="Variant of test(1) that can test multiple files from cmdline or stdin"
arch=(i686 x86_64)
url="https://codeberg.org/maandree/xtest"
license=('ISC')
depends=()
makedepends=()
source=($pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz)
sha512sums=(0d5ada6ef0bb9044e309a7b1cb6a4a032d778bd29bf9afaede86c79b06961832876ea31dec4ba1511d008a59d9c21dc3cb0a716c9b7794eac292185eeb182fe3)

build() {
  cd "$srcdir/$pkgname"
  if test -z "$CC"; then
    export CC=cc
  fi
  make PREFIX=/usr
}

check() {
  cd "$srcdir/$pkgname"
  make PREFIX=/usr check
}

package() {
  cd "$srcdir/$pkgname"
  make PREFIX=/usr DESTDIR="$pkgdir" install
}