From ba87d166227b1fe570bd512992ad87a27533be41 Mon Sep 17 00:00:00 2001 From: Fernando Ortiz Date: Sun, 6 Jul 2014 01:30:49 -0500 Subject: makepkg 4.1.2 (new formula) --- Library/Formula/makepkg.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Library/Formula/makepkg.rb (limited to 'Library') 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 -- cgit v1.2.3