2014-07-06 06:30:49 +00:00
|
|
|
class Makepkg < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Compile and build packages suitable for installation with pacman"
|
2014-07-06 06:30:49 +00:00
|
|
|
homepage "https://wiki.archlinux.org/index.php/makepkg"
|
2015-07-10 01:31:53 +00:00
|
|
|
url "https://projects.archlinux.org/git/pacman.git",
|
|
|
|
:tag => "v4.2.1",
|
|
|
|
:revision => "068f8cec42057751f528b19cece37db13ae92541"
|
2015-07-12 03:28:29 +00:00
|
|
|
revision 1
|
2015-07-10 01:31:53 +00:00
|
|
|
|
|
|
|
head "https://projects.archlinux.org/git/pacman.git"
|
2014-07-06 06:30:49 +00:00
|
|
|
|
2014-07-07 23:54:12 +00:00
|
|
|
bottle do
|
2015-07-13 19:44:00 +00:00
|
|
|
sha256 "d2230e87184cdf11947f22aa9beaf588e4682fccfd964d2449b20213630fa129" => :yosemite
|
|
|
|
sha256 "3a5020efac5c5f9b7d4a74d950b8bcc5054a50f89b5049e711ec3aaee2c3bfe9" => :mavericks
|
|
|
|
sha256 "17dcf87394cd744c514133ddeff9de701082bb2563b70aa4f8820f6116f7938e" => :mountain_lion
|
2014-07-07 23:54:12 +00:00
|
|
|
end
|
|
|
|
|
2015-07-10 01:31:53 +00:00
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "asciidoc" => :build
|
|
|
|
depends_on "libtool" => :build
|
2014-07-06 06:30:49 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libarchive" => :build
|
|
|
|
depends_on "bash"
|
|
|
|
depends_on "fakeroot"
|
2015-07-10 01:31:53 +00:00
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "openssl"
|
|
|
|
depends_on "gpgme" => :optional
|
2014-07-06 06:30:49 +00:00
|
|
|
|
|
|
|
def install
|
2015-07-10 01:31:53 +00:00
|
|
|
system "./autogen.sh"
|
2014-07-06 06:30:49 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
2015-07-10 01:31:53 +00:00
|
|
|
"--sysconfdir=#{etc}",
|
|
|
|
"--localstatedir=#{var}"
|
|
|
|
|
2014-07-09 01:11:50 +00:00
|
|
|
system "make", "install"
|
2014-07-06 06:30:49 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"PKGBUILD").write("source=(https://androidnetworktester.googlecode.com/files/10kb.txt)")
|
|
|
|
system "#{bin}/makepkg", "-dg"
|
|
|
|
end
|
|
|
|
end
|