def make_pkgbuild(self, package, pkgbuild): pkgbuild.list("source").append(self.url) pkgbuild.list("md5sums").append(self.md5) build = pkgbuild.code("build") build.append(BUILD_CD, 'cd "$srcdir/%s"' % self.extracted) package = pkgbuild.code("package") package.append(INSTALL_CD, 'cd "$srcdir/%s"' % self.extracted)
def make_pkgbuild(self, package, pkgbuild): pkgbuild.list("options").append("!libtool") build = pkgbuild.code("build") build.append(BUILD_CONFIGURE, './configure --prefix=/usr') build.append(BUILD_MAKE, 'make') package = pkgbuild.code("package") package.append(INSTALL_STAGE, 'make DESTDIR="$pkgdir" install')
def make_pkgbuild(self, package, pkgbuild): pkgbuild.list("makedepends").append("git") if self.deep: git_args = "" else: git_args = '--depth 1 --branch "%s"' % self.commit if self.branch is None: self.full_commit = self.tag else: self.full_commit = "origin/\"%s\"" % self.branch build = pkgbuild.code("build") build.append(BUILD_UNPACK, """ rm -rf "${srcdir}/%(repo_name)s" cd "${srcdir}" git clone """+git_args+""" "%(url)s" cd "${srcdir}/%(repo_name)s" git checkout -b buzzy-build %(full_commit)s """, self) package = pkgbuild.code("package") package.append(INSTALL_CD, 'cd "$srcdir/%s"' % self.repo_name)
def make_pkgbuild(self, package, pkgbuild): pkgbuild.list("makedepends").append("cmake") build = pkgbuild.code("build") build.append(BUILD_CONFIGURE, """ cmake_src=$(pwd) mkdir -p "${startdir}/cmake-build" pushd "${startdir}/cmake-build" cmake -DCMAKE_INSTALL_PREFIX=/usr "${cmake_src}" popd """) build.append(BUILD_MAKE, """ pushd "${startdir}/cmake-build" make popd """) package = pkgbuild.code("package") package.append(INSTALL_STAGE, """ pushd "${startdir}/cmake-build" make DESTDIR="$pkgdir" install popd """)