summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bef3f575ed894c64bbfafa5e1e93cb969f0200f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: dianlujitao <dianlujitao at gmail dot com>
pkgname=consoletype
_pkgname=gentoo-functions
pkgdesc="print type of the console connected to standard input"
pkgver=0.15
pkgrel=1
arch=('i686' 'x86_64' 'armv7h')
url="https://packages.gentoo.org/packages/sys-apps/gentoo-functions"
license=('GPL')
source=("https://github.com/gentoo/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha256sums=('07857be94b12d984388efb3cce06034d1e26c516614e63f5bd5d01f4081d17d9')

build() {
    cd ${srcdir}/${_pkgname}-${pkgver}
    make
}

package() {
  cd ${srcdir}/${_pkgname}-${pkgver}
	install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
 	install -Dm644 ${pkgname}.1 ${pkgdir}/usr/share/man/man1/${pkgname}.1
}