summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f69751f1d63c8943d82fba4c938bcae83e26397 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: noonov <noonov@gmail.com>

pkgname=xyzsh
pkgver=1.5.8
pkgrel=5
pkgdesc="Interactive shell and text processing tools"
arch=('i686' 'x86_64')
url="https://github.com/ab25cq/xyzsh"
license=('MIT')
depends=('glibc' 'ncurses' 'oniguruma')
source=(https://osdn.net/projects/${pkgname}/downloads/60140/${pkgname}-${pkgver}.tgz gcc14.patch)
md5sums=('4fab43dbd794fb4af871ac6c9989526b'
	 '084be8ed51601d02c72218d8f9034927')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  # https://github.com/ab25cq/xyzsh/issues/5
  patch -p1 -i ../gcc14.patch
  ./configure --prefix=/usr --sysconfdir=/etc --with-optimize
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install
  install --mode=644 -D --no-target-directory $srcdir/$pkgname-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE

}