diff options
| author | Fernando Ortiz | 2014-07-06 01:30:49 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-07-08 17:11:31 -0700 |
| commit | ba87d166227b1fe570bd512992ad87a27533be41 (patch) | |
| tree | 9d067dab8ffab2b1114ca960c7d0774964c20651 /Library/Formula/makepkg.rb | |
| parent | b473a1accb657fdaddbffc0b6ea913ee104a8f63 (diff) | |
| download | homebrew-ba87d166227b1fe570bd512992ad87a27533be41.tar.bz2 | |
makepkg 4.1.2 (new formula)
Diffstat (limited to 'Library/Formula/makepkg.rb')
| -rw-r--r-- | Library/Formula/makepkg.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/makepkg.rb b/Library/Formula/makepkg.rb new file mode 100644 index 000000000..755adc8da --- /dev/null +++ b/Library/Formula/makepkg.rb @@ -0,0 +1,31 @@ +require "formula" + +class Makepkg < Formula + homepage "https://wiki.archlinux.org/index.php/makepkg" + url "ftp://ftp.archlinux.org/other/pacman/pacman-4.1.2.tar.gz" + sha1 "ed9a40a9b532bc43e48680826d57518134132538" + + depends_on "pkg-config" => :build + depends_on "libarchive" => :build + depends_on "bash" + depends_on "fakeroot" + + def install + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--sysconfdir=#{etc}" + cd "scripts" do + system "make", "makepkg" + bin.install "makepkg" + end + cd "etc" do + system "make", "makepkg.conf" + etc.install "makepkg.conf" + end + end + + test do + (testpath/"PKGBUILD").write("source=(https://androidnetworktester.googlecode.com/files/10kb.txt)") + system "#{bin}/makepkg", "-dg" + end +end |
