MSYS2-packages/tree/PKGBUILD
2024-03-27 17:37:54 +01:00

33 lines
929 B
Bash

# Maintainer: Alexey Pavlov <Alexpux@gmail.com>
pkgname=tree
pkgver=2.1.1
pkgrel=1
pkgdesc="A directory listing program displaying a depth indented list of files"
arch=('i686' 'x86_64')
url="http://mama.indstate.edu/users/ice/tree/"
msys2_references=(
"anitya: 5006"
)
license=('GPL')
makedepends=('make' 'gcc')
source=("https://gitlab.com/OldManProgrammer/unix-tree/-/archive/${pkgver}/unix-tree-${pkgver}.tar.gz"
'Makefile-Uncomment-for-Cygwin.patch')
sha256sums=('bcd2a0327ad40592a9c43e09a4d2ef834e6f17aa9a59012a5fb1007950b5eced'
'd5d68fc848613eff0ce3193dd28ef7fe04ecb5261cd4e528613462c6e56f4c3a')
prepare() {
cd ${srcdir}/unix-${pkgname}-${pkgver}
patch -p1 -i ${srcdir}/Makefile-Uncomment-for-Cygwin.patch
}
build() {
cd ${srcdir}/unix-${pkgname}-${pkgver}
make
}
package() {
cd ${srcdir}/unix-${pkgname}-${pkgver}
make PREFIX="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man" install
}