-
-
Save gildo/d8f3c6f7614df2368479 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------- | |
name: bzip2 | |
description: A high-quality data compression program | |
version: 1.0.6 | |
release: 1 | |
sources: | |
main: | |
- http://www.bzip.org/$pkgver/bzip2-$pkgver.tar.gz | |
- 3f89f861209ce81a6bab1fd1998c0ef311712002 | |
build: | |
- sed -e 's/^CFLAGS=\(.*\)$/CFLAGS=\1 \$(BIGFILES)/' -i ./Makefile-libbz2_so | |
- sed -i "s|-O2|${CFLAGS}|g" Makefile | |
- sed -i "s|-O2|${CFLAGS}|g" Makefile-libbz2_so | |
- make -f Makefile-libbz2_so | |
- make bzip2 bzip2recover libbz2.a | |
package: | |
- install -dm755 $pkgdir/usr/{bin,lib,include,share/man/man1} | |
- install -m755 bzip2-shared $pkgdir/usr/bin/bzip2 | |
- install -m755 bzip2recover bzdiff bzgrep bzmore $pkgdir/usr/bin | |
- ln -sf bzip2 $pkgdir/usr/bin/bunzip2 | |
- ln -sf bzip2 $pkgdir/usr/bin/bzcat | |
- install -m755 libbz2.so.1.0.6 $pkgdir/usr/lib | |
- ln -s libbz2.so.1.0.6 $pkgdir/usr/lib/libbz2.so | |
- ln -s libbz2.so.1.0.6 $pkgdir/usr/lib/libbz2.so.1 | |
- ln -s libbz2.so.1.0.6 $pkgdir/usr/lib/libbz2.so.1.0 | |
- install -m644 bzlib.h $pkgdir/usr/include/ | |
- install -m644 bzip2.1 $pkgdir/usr/share/man/man1/ | |
- ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bunzip2.1 | |
- ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bzcat.1 | |
- ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bzip2recover.1 | |
- install -Dm644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clj-yaml.core :as yaml]) | |
(def x (yaml/parse-string | |
(slurp "bzip2.yaml"))) | |
(defn -main [& args] | |
(reduce-kv | |
(fn [m k v] (assoc m k | |
(-> v (clojure.string/replace #"bzip2" "bob") ))) | |
{} x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment