bfc1508d (kx 2023-03-24 03:55:33 +0300 1) #
bfc1508d (kx 2023-03-24 03:55:33 +0300 2) # Maintainer: Andrey V.Kosteltsev <kx@radix.pro>
bfc1508d (kx 2023-03-24 03:55:33 +0300 3) #
bfc1508d (kx 2023-03-24 03:55:33 +0300 4) pkgname=csvn-ui
8c8573fd (kx 2023-04-12 19:24:33 +0300 5) pkgver=0.1.5
bfc1508d (kx 2023-03-24 03:55:33 +0300 6) pkgrel=2
bfc1508d (kx 2023-03-24 03:55:33 +0300 7) pkgdesc='cSvn-ui CGI Script is a web interface for Subversion Repositories'
bfc1508d (kx 2023-03-24 03:55:33 +0300 8) arch=('x86_64')
bfc1508d (kx 2023-03-24 03:55:33 +0300 9) url='https://csvn.radix.pro'
bfc1508d (kx 2023-03-24 03:55:33 +0300 10) license=('custom')
bfc1508d (kx 2023-03-24 03:55:33 +0300 11) depends=('file' 'pcre2' 'libxml2' 'md4c')
bfc1508d (kx 2023-03-24 03:55:33 +0300 12) source=("https://ftp.radix.pro/pub/csvn-ui/${pkgname}-${pkgver}.tar.xz")
bfc1508d (kx 2023-03-24 03:55:33 +0300 13) md5sums=('..Check MD5 sum before Building Package..')
bfc1508d (kx 2023-03-24 03:55:33 +0300 14)
bfc1508d (kx 2023-03-24 03:55:33 +0300 15) build() {
bfc1508d (kx 2023-03-24 03:55:33 +0300 16) cd ${pkgname}-${pkgver}
bfc1508d (kx 2023-03-24 03:55:33 +0300 17)
bfc1508d (kx 2023-03-24 03:55:33 +0300 18) CFLAGS="-O2 -fPIC -Wno-unused-result" \
bfc1508d (kx 2023-03-24 03:55:33 +0300 19) ./configure \
bfc1508d (kx 2023-03-24 03:55:33 +0300 20) --prefix=/usr \
bfc1508d (kx 2023-03-24 03:55:33 +0300 21) --sysconfdir=/etc \
bfc1508d (kx 2023-03-24 03:55:33 +0300 22) --with-scriptdir=/usr/share/nginx/csvn
bfc1508d (kx 2023-03-24 03:55:33 +0300 23)
bfc1508d (kx 2023-03-24 03:55:33 +0300 24) make
bfc1508d (kx 2023-03-24 03:55:33 +0300 25) }
bfc1508d (kx 2023-03-24 03:55:33 +0300 26)
bfc1508d (kx 2023-03-24 03:55:33 +0300 27) package() {
bfc1508d (kx 2023-03-24 03:55:33 +0300 28) cd ${pkgname}-${pkgver}
bfc1508d (kx 2023-03-24 03:55:33 +0300 29)
bfc1508d (kx 2023-03-24 03:55:33 +0300 30) make install DESTDIR="${pkgdir}"
bfc1508d (kx 2023-03-24 03:55:33 +0300 31)
bfc1508d (kx 2023-03-24 03:55:33 +0300 32) # Gzip man pages:
bfc1508d (kx 2023-03-24 03:55:33 +0300 33) gzip -9 ${pkgdir}/usr/share/man/man5/csvn-ui.rc.5
bfc1508d (kx 2023-03-24 03:55:33 +0300 34)
bfc1508d (kx 2023-03-24 03:55:33 +0300 35) # Install documentation:
bfc1508d (kx 2023-03-24 03:55:33 +0300 36) install -d ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
bfc1508d (kx 2023-03-24 03:55:33 +0300 37) cp -a ChangeLog LICENSE README README.md doc/ ${pkgdir}/usr/share/doc/${pkgname}-${pkgver}
bfc1508d (kx 2023-03-24 03:55:33 +0300 38) }