diff options
Diffstat (limited to 'libre')
-rw-r--r-- | libre/apache-ant-libre/PKGBUILD | 72 | ||||
-rw-r--r-- | libre/apache-ant-libre/ant_diagnostics.patch | 23 | ||||
-rw-r--r-- | libre/apache-ant-libre/apache-ant.csh | 2 | ||||
-rw-r--r-- | libre/apache-ant-libre/apache-ant.sh | 3 | ||||
-rw-r--r-- | libre/java-asm2/PKGBUILD | 74 | ||||
-rw-r--r-- | libre/java-asm3/PKGBUILD | 83 | ||||
-rw-r--r-- | libre/java-ow-util-ant-tasks/PKGBUILD | 27 | ||||
-rw-r--r-- | libre/java-ow-util-ant-tasks/SRCBUILD | 29 | ||||
-rw-r--r-- | libre/linux-libre-lts/PKGBUILD | 53 | ||||
-rw-r--r-- | libre/linux-libre-lts/linux-libre-lts.install | 7 | ||||
-rw-r--r-- | libre/maven-libre/PKGBUILD | 76 | ||||
-rw-r--r-- | libre/maven-libre/maven.csh | 2 | ||||
-rw-r--r-- | libre/maven-libre/maven.sh | 3 | ||||
-rw-r--r-- | libre/pacman-mirrorlist-libre/PKGBUILD | 18 |
14 files changed, 441 insertions, 31 deletions
diff --git a/libre/apache-ant-libre/PKGBUILD b/libre/apache-ant-libre/PKGBUILD new file mode 100644 index 000000000..9f5ef223b --- /dev/null +++ b/libre/apache-ant-libre/PKGBUILD @@ -0,0 +1,72 @@ +# Maintainer (Arch): Paul Mattal <paul@archlinux.org> +# Contributor: Andrew Wright <andreww@photism.org> + +_pkgname=apache-ant +pkgname=apache-ant-libre +pkgver=1.8.2 + +provides=("$_pkgname=$pkgver") +replaces=("$_pkgname") +conflicts=("$_pkgname") + +pkgrel=3 +pkgdesc="A java-based build tool" +arch=('any') +license=('APACHE') +url="http://ant.apache.org/" +depends=('java-environment') +makedepends=('junit') +optdepends=('junit: to have JUnit on the classpath in javac tasks') +source=(http://archive.apache.org/dist/ant/source/${_pkgname}-${pkgver}-src.tar.bz2 + ${_pkgname}.sh ${_pkgname}.csh + ant_diagnostics.patch) + +build() { + # This directory is what becomes + # http://archive.apache.org/dist/ant/binaries/${pkgname}-${pkgver}-bin.tar.bz2 + # which is what Arch uses + rm -rf "${srcdir}"/${_pkgname}-${pkgver}-bin + mkdir -p "${srcdir}"/${_pkgname}-${pkgver}-bin + + cd "${srcdir}"/${_pkgname}-${pkgver} + ln -sf /usr/share/java/junit.jar lib/optional # JUnit isn't really optional + sh build.sh -Ddist.dir="${srcdir}"/${_pkgname}-${pkgver}-bin dist +} + +package() { + # install profile.d script + install -dm755 "${pkgdir}"/etc/profile.d + install -m755 "${srcdir}"/${_pkgname}.{csh,sh} "${pkgdir}"/etc/profile.d/ + + # Get the ANT_HOME env var + source "${srcdir}"/${_pkgname}.sh + + cd "${srcdir}"/${_pkgname}-${pkgver}-bin + install -dm755 "${pkgdir}"/${ANT_HOME}/{bin,lib} + + install -m644 ./lib/*.jar "${pkgdir}"/${ANT_HOME}/lib + cp -Rp ./etc "${pkgdir}"/${ANT_HOME} + + # Do not copy Windows .bat/.cmd files + find ./bin -type f -a ! -name \*.bat -a ! -name \*.cmd \ + -exec install -m755 {} "${pkgdir}"/${ANT_HOME}/bin \; + + # symlink to junit so it's on the javac build path for ant + # matches behavior on ubuntu 9 and makes sense for compatibility + # http://bugs.archlinux.org/task/15229 + ln -sf /usr/share/java/junit.jar "${pkgdir}"/usr/share/java/apache-ant/lib/ + + # fix python2 path + sed -i 's|/usr/bin/python|/usr/bin/python2|' "${pkgdir}"/usr/share/java/apache-ant/bin/runant.py + + # The license says the NOTICE file should be redistributed for derivative + # works, so lets supply it. + cd "${srcdir}"/${_pkgname}-${pkgver} + install -dm755 "${pkgdir}"/usr/share/licenses/${_pkgname} + install -m644 LICENSE NOTICE "${pkgdir}"/usr/share/licenses/${_pkgname} +} + +md5sums=('0d9e108afcd15b820150b8085c96d2b1' + '593ee6ebd9b8ec321534a028e686880f' + '475b684eb8202c09cbb51496cd8ee1e0' + 'cbaab423be40a6e63f0fde901b91eb50') diff --git a/libre/apache-ant-libre/ant_diagnostics.patch b/libre/apache-ant-libre/ant_diagnostics.patch new file mode 100644 index 000000000..38148b45c --- /dev/null +++ b/libre/apache-ant-libre/ant_diagnostics.patch @@ -0,0 +1,23 @@ +--- a/src/main/org/apache/tools/ant/Diagnostics.java ++++ b/src/main/org/apache/tools/ant/Diagnostics.java +@@ -179,7 +179,10 @@ + * @param clazz the class to get the information from.
+ * @since Ant 1.8.0
+ */
+- private static URL getClassLocation(Class clazz) {
++ private static URL getClassLocation(Class clazz) { ++ if (clazz.getProtectionDomain().getCodeSource() == null) { ++ return null; ++ }
+ return clazz.getProtectionDomain().getCodeSource().getLocation();
+ }
+
+@@ -241,7 +244,7 @@ + }
+ Transformer transformer = null;
+ try {
+- transformer = transformerFactory.newTransformer();
++ transformer = transformerFactory.newTransformer(); + } catch (Exception e) {
+ // ignore
+ ignoreThrowable(e);
diff --git a/libre/apache-ant-libre/apache-ant.csh b/libre/apache-ant-libre/apache-ant.csh new file mode 100644 index 000000000..b6a6d5840 --- /dev/null +++ b/libre/apache-ant-libre/apache-ant.csh @@ -0,0 +1,2 @@ +setenv ANT_HOME /usr/share/java/apache-ant +setenv PATH ${PATH}:${ANT_HOME}/bin diff --git a/libre/apache-ant-libre/apache-ant.sh b/libre/apache-ant-libre/apache-ant.sh new file mode 100644 index 000000000..ab602fb28 --- /dev/null +++ b/libre/apache-ant-libre/apache-ant.sh @@ -0,0 +1,3 @@ +export ANT_HOME=/usr/share/java/apache-ant +export PATH=$PATH:$ANT_HOME/bin + diff --git a/libre/java-asm2/PKGBUILD b/libre/java-asm2/PKGBUILD new file mode 100644 index 000000000..9f42e977d --- /dev/null +++ b/libre/java-asm2/PKGBUILD @@ -0,0 +1,74 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=asm +pkgname=java-asm2 +pkgver=2.2.3 +pkgrel=1 +pkgdesc="An all purpose Java bytecode manipulation and analysis framework." +arch=('any') +url="http://asm.ow2.org/" +license=('custom:BSD3') +depends=('java-runtime') +makedepends=( + apache-ant + java-ow-util-ant-tasks +) +source=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + mkdir -p test/lib + echo 'objectweb.ant.tasks.path /usr/share/java/ow_util_ant_tasks.jar' >> build.properties + ant dist +} + +mvn-install() { + group=$1 + pkg=$2 + ver=$3 + + dir="$pkgdir"/usr/share/maven/repository/$group/$pkg/$ver + install -d "$dir" + cp $pkg-$pkgver.* "$dir" +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + # Install license file + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Install documentation + cd output/dist + install -d "$pkgdir/usr/share/doc/$pkgname" + cp -r doc/javadoc/user "$pkgdir/usr/share/doc/$pkgname/javadoc" + cp -r examples "$pkgdir/usr/share/doc/$pkgname/examples" + + # Install Apache Maven modules + cd lib + mvn-install asm asm $pkgver + mvn-install asm asm-analysis $pkgver + mvn-install asm asm-attrs $pkgver + mvn-install asm asm-commons $pkgver + mvn-install asm asm-tree $pkgver + mvn-install asm asm-util $pkgver + mvn-install asm asm-xml $pkgver + cd all + mvn-install asm asm-all $pkgver + + # Synlink Maven modules to /usr/share/java + install -d "$pkgdir"/usr/share/java/asm + cd "$pkgdir" + find usr/share/maven/repository/asm \ + -type f -name '*.jar' -printf '/%p\n' | while read jar; do + ln -s "$jar" "$pkgdir"/usr/share/java/asm + done + + # Put the finishing touches on /usr/share/java + ln -s "asm/asm-$pkgver.jar" "$pkgdir"/usr/share/java/asm-2.jar + cd "$srcdir/$_pkgname-$pkgver" + install -m644 output/dist/lib/all/README.txt "$pkgdir"/usr/share/java/asm/README-$pkgver.txt +} + +md5sums=('7a92c87bf067925685cf68dcc0dd8998') diff --git a/libre/java-asm3/PKGBUILD b/libre/java-asm3/PKGBUILD new file mode 100644 index 000000000..2c6a7f933 --- /dev/null +++ b/libre/java-asm3/PKGBUILD @@ -0,0 +1,83 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +_pkgname=asm +pkgname=java-asm3 +pkgver=3.3.1 +pkgrel=3 +pkgdesc="An all purpose Java bytecode manipulation and analysis framework." +arch=('any') +url="http://asm.ow2.org/" +license=('custom:BSD3') +depends=('java-runtime') +makedepends=( + apache-ant + java-ow-util-ant-tasks +) +source=("http://download.forge.objectweb.org/$_pkgname/$_pkgname-$pkgver.tar.gz") + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + rm cobertura.ser # We regenerate this + rm examples/jasmin/test/jasmin.jar + + echo 'objectweb.ant.tasks.path /usr/share/java/ow_util_ant_tasks.jar' >> build.properties + ant dist +} + +# Tests have more dependencies, and I can't be bothered to package them. +#check() { +# cd "$srcdir/$_pkgname-$pkgver" +# ant test +#} + +mvn-install() { + group=$1 + pkg=$2 + ver=$3 + + dir="$pkgdir"/usr/share/maven/repository/$group/$pkg/$ver + install -d "$dir" + cp $pkg-$pkgver.* "$dir" +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + # Install license file + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # Install documentation + cd output/dist + install -d "$pkgdir/usr/share/doc/$pkgname" + cp -r doc/javadoc/user "$pkgdir/usr/share/doc/$pkgname/javadoc" + cp -r examples "$pkgdir/usr/share/doc/$pkgname/examples" + + # Install Apache Maven modules + cd lib + mvn-install asm asm $pkgver + mvn-install asm asm-analysis $pkgver + mvn-install asm asm-commons $pkgver + mvn-install asm asm-parent $pkgver + mvn-install asm asm-tree $pkgver + mvn-install asm asm-util $pkgver + mvn-install asm asm-xml $pkgver + cd all + mvn-install asm asm-all $pkgver + mvn-install asm asm-debug-all $pkgver + + # Synlink Maven modules to /usr/share/java + install -d "$pkgdir"/usr/share/java/asm + cd "$pkgdir" + find usr/share/maven/repository/asm \ + -type f -name '*.jar' -printf '/%p\n' | while read jar; do + ln -s "$jar" "$pkgdir"/usr/share/java/asm + done + + # Put the finishing touches on /usr/share/java + ln -s "asm/asm-$pkgver.jar" "$pkgdir"/usr/share/java/asm-3.jar + cd "$srcdir/$_pkgname-$pkgver" + install -m644 output/dist/lib/all/README.txt "$pkgdir"/usr/share/java/asm/README-$pkgver.txt +} + +md5sums=('433024df8176f09922646316e415631c') diff --git a/libre/java-ow-util-ant-tasks/PKGBUILD b/libre/java-ow-util-ant-tasks/PKGBUILD new file mode 100644 index 000000000..023048188 --- /dev/null +++ b/libre/java-ow-util-ant-tasks/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-ow-util-ant-tasks +pkgver=1.3.2 +pkgrel=1 +pkgdesc="ObjectWeb utility Ant tasks library" +arch=('any') +url="http://forge.ow2.org/projects/monolog" +license=('LGPL') +depends=('java-environment') +makedepends=('apache-ant' 'xalan-java' 'java-asm2') +source=("http://repo.parabolagnulinux.org/sources/${pkgname}-${pkgver}-1-any.src.tar.xz") + +build() { + cd "$srcdir/$pkgname-$pkgver" + ln -s /usr/share/java/asm-2.jar externals + ln -s /usr/share/java/xalan.jar externals + ant jar +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -d "$pkgdir"/usr/share/java + install -m644 "output/lib/ow_util_ant_tasks.jar" "$pkgdir"/usr/share/java +} + +md5sums=('339b3eb4b2960473a42f5f781afbeca6') diff --git a/libre/java-ow-util-ant-tasks/SRCBUILD b/libre/java-ow-util-ant-tasks/SRCBUILD new file mode 100644 index 000000000..01241907d --- /dev/null +++ b/libre/java-ow-util-ant-tasks/SRCBUILD @@ -0,0 +1,29 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=java-ow-util-ant-tasks +pkgver=1.3.2 +pkgrel=1 +pkgdesc="ObjectWeb utility Ant tasks library" +arch=('any') +url="http://forge.ow2.org/projects/monolog" +license=('LGPL') +source=("http://download.forge.objectweb.org/monolog/ow_util_ant_tasks_$pkgver.zip") +noextract=("ow_util_ant_tasks_$pkgver.zip") + +build() { + cd "$srcdir" + mkdir $pkgname-$pkgver + cd $pkgname-$pkgver + bsdtar xf "$srcdir"/ow_util_ant_tasks_$pkgver.zip + rm -rf output + rm externals/* +} + + +package() { + PKGEXT=${SRCEXT} + PKGDEST=${SRCDEST} + cp -a "$srcdir/$pkgname-$pkgver" "$pkgdir/" +} + +md5sums=('cd602bf75a0feab480fa97739955b84e') diff --git a/libre/linux-libre-lts/PKGBUILD b/libre/linux-libre-lts/PKGBUILD index 0c9e95b83..63463cc0a 100644 --- a/libre/linux-libre-lts/PKGBUILD +++ b/libre/linux-libre-lts/PKGBUILD @@ -8,7 +8,9 @@ pkgname=('linux-libre-lts' 'linux-libre-lts-headers') # Build stock -LIBRE kerne # pkgname=linux-custom # Build kernel with a different name _kernelname=${pkgname#linux-libre} _basekernel=3.0 -pkgver=${_basekernel}.22 +_sublevel=23 +pkgver=${_basekernel}.${_sublevel} +_lxopkgver=${_basekernel}.22 # nearly always the same as pkgver pkgrel=1 arch=('i686' 'x86_64' 'mips64el') url="http://linux-libre.fsfla.org/" @@ -17,7 +19,6 @@ makedepends=('xmlto' 'docbook-xsl') options=('!strip') source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_basekernel}-libre/linux-${_basekernel}-libre.tar.xz" "http://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver}-libre/patch-${_basekernel}-libre-${pkgver}-libre.xz" - "http://www.linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense/pool/linux-patches-${pkgver}-libre-lemote_0lxo_mipsel.tar.bz2" # the main kernel config files 'config.i686' 'config.x86_64' # standard config files for mkinitcpio ramdisk @@ -27,10 +28,10 @@ source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_basekernel}-li 'boot-logo.patch' 'change-default-console-loglevel.patch' 'i915-fix-ghost-tv-output.patch' - 'ext4-options.patch') + 'ext4-options.patch' + "http://www.linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense/pool/linux-patches-${_lxopkgver}-libre-lemote_0lxo_mipsel.tar.bz2") md5sums=('44e7bc20c235a193f9b6123a8d5e9509' - 'ddc0925df01b70f6eef95e9b4160f28a' - '248d057fd2341d315ada5e844cdbdc1f' + '5b6f929403ddad35a65b934ed5df2f8a' '054af37f538b74a8090fc3e783a2edfa' 'e195768d5b8cbe788dbe615561d4314f' 'd2c0701480bce49fd4b40dc46b9863f1' @@ -39,7 +40,13 @@ md5sums=('44e7bc20c235a193f9b6123a8d5e9509' '04b21c79df0a952c22d681dd4f4562df' '9d3c56a4b999c8bfbd4018089a62f662' '263725f20c0b9eb9c353040792d644e5' - '74d2b710d6c97aee441d7566f8f68815') + '74d2b710d6c97aee441d7566f8f68815' + '248d057fd2341d315ada5e844cdbdc1f') +if [ "$CARCH" != "mips64el" ]; then + # Don't use the Loongson-specific patches on non-mips64el arches. + unset source[${#source[@]}-1] + unset md5sums[${#md5sums[@]}-1] +fi build() { cd "${srcdir}/linux-${_basekernel}" @@ -71,16 +78,22 @@ build() { if [ "$CARCH" == "mips64el" ]; then sed -i "s|^EXTRAVERSION.*|EXTRAVERSION =-libre|" Makefile + sed -r "s|^( SUBLEVEL = ).*|\1$_sublevel|" \ + < "${srcdir}/lxo-config.patch" > lxo-config.patch msg2 "Adding loongson-community patches" patch -Np1 -i ${srcdir}/${_basekernel}*-*-loongson-community.patch - patch -Np0 -i "${srcdir}/lxo-config.patch" + patch -Np0 -i lxo-config.patch -# ensure N32, add localversion and remove uevent helper as per +# ensure N32, add localversion, remove uevent helper as per # https://git.kernel.org/?p=linux/hotplug/udev.git;a=blob_plain;f=README - sed -i -e "s|CONFIG_MIPS32_N32=.*|CONFIG_MIPS32_N32=y|g" \ +# and make USB storage support builtin (e.g. for booting from USB +# disks without slowly loading an initramfs) + sed -ri -e "s|CONFIG_MIPS32_N32=.*|CONFIG_MIPS32_N32=y|g" \ -e "s|CONFIG_MIPS32_N32=.*|CONFIG_MIPS32_N32=y|g" \ -e "s|CONFIG_UEVENT_HELPER_PATH=.*|CONFIG_UEVENT_HELPER_PATH=\"\"|g" \ - -e "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"-LIBRE\"|g" ./.config + -e "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"-LIBRE\"|g" \ + -e "s;(CONFIG_USB(_COMMON|_EHCI_HCD|_OHCI_HCD|_STORAGE.*|_UAS)?)=.*;\1=y;g" \ + ./.config else cat "${srcdir}/config.${CARCH}" > ./.config # simpler fi @@ -114,7 +127,12 @@ build() { # build! if [ "$CARCH" == "mips64el" ]; then - make ${MAKEFLAGS} vmlinuz modules + # The build system passes it directly to linker, disable to avoid + # having unknown -Wl,... options. + export LDFLAGS="" + # bzImage is arch-specific and not supported on mips; vmlinux is + # useful for oprofile. + make ${MAKEFLAGS} vmlinux vmlinuz modules else make ${MAKEFLAGS} bzImage modules fi @@ -123,13 +141,19 @@ build() { package_linux-libre-lts() { pkgdesc="The Linux-libre Kernel and modules - stable longtime supported kernel package suitable for servers" groups=('base') - depends=('coreutils' 'module-init-tools>=3.16' 'mkinitcpio>=0.7') + depends=('coreutils' 'module-init-tools>=3.16') optdepends=('crda: to set the correct wireless channels of your country') provides=('kernel26-lts' "linux-lts=$pkgver") conflicts=('kernel26-lts' 'kernel26-libre-lts' 'linux-lts') replaces=('kernel26-lts' 'kernel26-libre-lts' 'linux-lts') backup=("etc/mkinitcpio.d/${pkgname}.preset") install=${pkgname}.install + if [ "$CARCH" = "mips64el" ]; then + optdepends+=('mkinitcpio: to make the initramfs (needs reinstall of this package)') + conflicts+=('mkinitcpio<0.7') + else + depends+=('mkinitcpio>=0.7') + fi cd "${srcdir}/linux-${_basekernel}" @@ -144,6 +168,7 @@ package_linux-libre-lts() { if [ "$CARCH" == "mips64el" ]; then cp vmlinuz "${pkgdir}/boot/vmlinuz-${pkgname}" + cp vmlinux "${pkgdir}/boot/vmlinux-${pkgname}" else cp "arch/${KARCH}/boot/bzImage" "${pkgdir}/boot/vmlinuz-${pkgname}" fi @@ -195,7 +220,7 @@ package_linux-libre-lts-headers() { # In case of repackaging this is empty if [ -z "${_kernver}" ]; then - cd ${srcdir}/linux-$pkgver + cd "${srcdir}/linux-${_basekernel}" _kernver="$(make kernelrelease)" fi @@ -229,7 +254,7 @@ package_linux-libre-lts-headers() { if [ "$CARCH" = "mips64el" ]; then cp "arch/${KARCH}/Kbuild" "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/" - cp "arch/${KARCH}/loongson" "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/" + cp -a "arch/${KARCH}/loongson" "${pkgdir}/usr/src/linux-${_kernver}/arch/${KARCH}/" cp "${srcdir}/Kbuild.platforms" "${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/" fi diff --git a/libre/linux-libre-lts/linux-libre-lts.install b/libre/linux-libre-lts/linux-libre-lts.install index 6cf57ce44..2de3804e6 100644 --- a/libre/linux-libre-lts/linux-libre-lts.install +++ b/libre/linux-libre-lts/linux-libre-lts.install @@ -2,7 +2,7 @@ # arg 2: the old package version KERNEL_NAME=-lts -KERNEL_VERSION=3.0.22-1-LIBRE-LTS +KERNEL_VERSION=3.0.23-1-LIBRE-LTS post_install () { # updating module dependencies @@ -17,8 +17,9 @@ post_install () { [ -f /etc/lilo.conf ] && loaders="$loaders /etc/lilo.conf" if [ -n "${loaders}" ] && grep -q -e vmlinuz26 -e kernel26.img -e kernel26-fallback.img $loaders; then # add compat symlinks for the initramfs images - ln -sf initramfs-linux-libre${KERNEL_NAME}.img /boot/kernel26${KERNEL_NAME}.img - ln -sf initramfs-linux-libre${KERNEL_NAME}-fallback.img /boot/kernel26${KERNEL_NAME}-fallback.img + ln -sf initramfs-linux-libre${KERNEL_NAME}.img boot/kernel26${KERNEL_NAME}.img + ln -sf initramfs-linux-libre${KERNEL_NAME}-fallback.img \ + boot/kernel26${KERNEL_NAME}-fallback.img ln -sf vmlinuz-linux-libre${KERNEL_NAME} /boot/vmlinuz26${KERNEL_NAME} fi fi diff --git a/libre/maven-libre/PKGBUILD b/libre/maven-libre/PKGBUILD new file mode 100644 index 000000000..2bd99940e --- /dev/null +++ b/libre/maven-libre/PKGBUILD @@ -0,0 +1,76 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> +# Maintainer (Arch): Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: William Rea <sillywilly@gmail.com> + +_pkgname=maven +pkgname=maven-libre +pkgver=3.0.4 + +provides=("$_pkgname=$pkgver") +replaces=("$_pkgname") +conflicts=("$_pkgname") + +pkgrel=1 +pkgdesc="A Java project management and project comprehension tool" +arch=('any') +url="http://maven.apache.org" +license=('Apache') +depends=('java-environment') +makedepends=('apache-ant') +backup=('etc/maven/settings.xml') + +_mirror=http://archive.apache.org/dist +source=($_mirror/maven/source/apache-maven-$pkgver-src.tar.gz + maven.sh maven.csh) + +_M2_LOCALREPO="/usr/share/maven/repository" + +# FIXME: This also does tasks for package() +build() { + cd $srcdir/apache-maven-$pkgver + + . /etc/profile.d/jre.sh + . /etc/profile.d/jdk.sh + + export MAVEN_OPTS=-Xmx512m + export M2_HOME="$pkgdir"/opt/maven + export PATH="$PATH:$M2_HOME/bin" + + # FIXME: Downloads many deps from Internet. They should be + # packaged separately and added to depends=() + install -d "$pkgdir`dirname $_M2_LOCALREPO`" + cp -r $_M2_LOCALREPO "$pkgdir$_M2_LOCALREPO" + install -d "$pkgdir"/opt + ant -Dmaven.repo.local="$pkgdir$_M2_LOCALREPO" + rm "$pkgdir"/opt/maven/*.txt +} + +package() { + install -d "$pkgdir$_M2_LOCALREPO" + + # Install config file in /etc + # Unlike the other directories, we symlink from the system to /opt/maven + # because that way all conf files stay in /etc + install -d "$pkgdir"/etc/maven + sed "55i<localRepository>$_M2_LOCALREPO</localRepository>" \ + < "$pkgdir"/opt/maven/conf/settings.xml \ + > "$pkgdir"/etc/maven/settings.xml + rm -rf "$pkgdir"/opt/maven/conf + ln -s /etc/maven "$pkgdir"/opt/maven/conf + + # Install profile.d settings + install -d "$pkgdir"/etc/profile.d + install -m 755 "$srcdir"/maven.{csh,sh} "$pkgdir"/etc/profile.d + + # Link executables to /usr/bin + install -d "$pkgdir"/usr/bin + ln -s /opt/maven/bin/{mvn,mvnDebug,mvnyjp} "$pkgdir"/usr/bin + + # Link jar files to appropriate place in /usr/share + install -d "$pkgdir"/usr/share/java + ln -s /opt/maven/lib "$pkgdir"/usr/share/java/maven +} + +md5sums=('17ca94d5be05a78c6ab12425b7a0ee10' + '58820067a4d7384477daa134023d9b57' + 'e2bbdeffed100cd51d05b2ba8ebd6321') diff --git a/libre/maven-libre/maven.csh b/libre/maven-libre/maven.csh new file mode 100644 index 000000000..f5750cfc8 --- /dev/null +++ b/libre/maven-libre/maven.csh @@ -0,0 +1,2 @@ +setenv MAVEN_OPTS -Xmx512m +setenv M2_HOME=/opt/maven diff --git a/libre/maven-libre/maven.sh b/libre/maven-libre/maven.sh new file mode 100644 index 000000000..b6655cc22 --- /dev/null +++ b/libre/maven-libre/maven.sh @@ -0,0 +1,3 @@ +#!/bin/bash +export MAVEN_OPTS=-Xmx512m +export M2_HOME=/opt/maven diff --git a/libre/pacman-mirrorlist-libre/PKGBUILD b/libre/pacman-mirrorlist-libre/PKGBUILD index 65fc932ef..fd3ebc7c1 100644 --- a/libre/pacman-mirrorlist-libre/PKGBUILD +++ b/libre/pacman-mirrorlist-libre/PKGBUILD @@ -7,31 +7,21 @@ pkgver=$(date +%Y%m%d) pkgrel=1 pkgdesc="Parabola GNU/Linux mirror list for use by pacman" arch=('any') -url="http://repo.parabolagnulinux.org/files/mirrorlist" +url="http://repo.parabolagnulinux.org/mirrorlist.txt" license=('GPL') groups=('base') -#backup=(etc/pacman.d/mirrorlist) -source=(mirrorlist) +backup=(etc/pacman.d/mirrorlist) +source=(mirrorlist::${url}) conflicts=(pacman-mirrorlist) replaces=(pacman-mirrorlist) provides=(pacman-mirrorlist) +md5sums=('e070f8d2639fdb742d0bfb21d27820d1') # keep an upgrade path for older installations PKGEXT='.pkg.tar.gz' -# NOTE on building this package: -# * Go to the trunk/ directory -# * Run bash -c ". PKGBUILD; updatelist" -# * Update the checksums, update pkgver -# * Build the package - -updatelist() { - wget -O mirrorlist http://repo.parabolagnulinux.org/files/mirrorlist -} - build() { mkdir -p $pkgdir/etc/pacman.d install -m644 $srcdir/mirrorlist $pkgdir/etc/pacman.d/ } -md5sums=('6440731bd17b4b6da3927e4882783946') |