mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
34 lines
909 B
Bash
34 lines
909 B
Bash
# Maintainer: Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
pkgname=astyle
|
|
pkgver=2.05.1
|
|
pkgrel=1
|
|
pkgdesc="Artistic Style is a source code indenter, formatter, and beautifier for the C, C++, C# and Java programming languages."
|
|
arch=('x86_64')
|
|
url="http://astyle.sourceforge.net/ "
|
|
license=('LGPL')
|
|
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}_${pkgver}_linux.tar.gz)
|
|
md5sums=('4142d178047d7040da3e0e2f1b030a1a')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}/build/gcc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}/build/gcc/bin
|
|
install -D -m755 -o root -g root astyle ${pkgdir}/usr/bin/astyle
|
|
|
|
for files in `find ${srcdir}/${pkgname}/doc -name *.html`
|
|
do
|
|
mkdir -p $pkgdir/usr/share/astyle
|
|
cp $files $pkgdir/usr/share/astyle
|
|
done
|
|
|
|
for files in `find ${srcdir}/${pkgname}/doc -name *.css`
|
|
do
|
|
mkdir -p $pkgdir/usr/share/astyle
|
|
cp $files $pkgdir/usr/share/astyle
|
|
done
|
|
}
|