Created
June 8, 2012 13:06
-
-
Save gildo/2895517 to your computer and use it in GitHub Desktop.
Drakefile example
This file contains hidden or 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" | |
version: 1.0.6 | |
release: "1" | |
description: A high-quality data compression program | |
sources: | |
- main: http://www.bzip.org/$pkgver/bzip2-$pkgver.tar.gz | |
md5: 3f89f861209ce81a6bab1fd1998c0ef311712002 | |
- patch: 000-bzip2-1.0.4-bzip2recover.patch | |
md5: 85ce76fdb67f52f152bba368c1de81132dcdbdb5 | |
build: | |
- run: | |
- 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 | |
- patch! | |
- run: | |
- make -f Makefile-libbz2_so | |
- make bzip2 bzip2recover libbz2.a | |
package: | |
- run: | |
- make DESTDIR="$pkgdir/" install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment