mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 11:57:17 +08:00
26 lines
585 B
Bash
26 lines
585 B
Bash
|
# Platform packages for Chakra
|
||
|
|
||
|
pkgname=perl-text-patch
|
||
|
_realname=Text-Patch
|
||
|
pkgver=1.8
|
||
|
pkgrel=3
|
||
|
pkgdesc="Patches text with given patch"
|
||
|
arch=(any)
|
||
|
license=(PerlArtistic GPL)
|
||
|
depends=(perl)
|
||
|
url="http://search.cpan.org/dist/$_realname"
|
||
|
options=('!emptydirs')
|
||
|
source=("http://search.cpan.org/CPAN/authors/id/C/CA/CADE/$_realname-$pkgver.tar.gz")
|
||
|
md5sums=('ad5e453d5ba3b48afd8163114d0fee1c')
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/$_realname-$pkgver"
|
||
|
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir/$_realname-$pkgver"
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
}
|