[arch-commits] Commit in gitlab-workhorse/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon May 2 16:43:07 UTC 2016


    Date: Monday, May 2, 2016 @ 18:43:07
  Author: svenstaro
Revision: 173425

upgpkg: gitlab-workhorse 0.7.2-1

Pushing gitlab-workhorse

Modified:
  gitlab-workhorse/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-05-02 16:33:31 UTC (rev 173424)
+++ PKGBUILD	2016-05-02 16:43:07 UTC (rev 173425)
@@ -9,23 +9,24 @@
 arch=('i686' 'x86_64')
 url="https://gitlab.com/gitlab-org/gitlab-workhorse"
 license=('MIT')
+depends=('glibc')
 makedepends=('go')
-source=("${pkgname}-${pkgver}.tgz::https://gitlab.com/gitlab-org/gitlab-workhorse/repository/archive.tar.gz?ref=${pkgver}"
+source=("${pkgname}-${pkgver}.tar.gz::https://gitlab.com/gitlab-org/gitlab-workhorse/repository/archive.tar.gz?ref=${pkgver}"
         "gitlab-workhorse.service")
 sha256sums=('d0572a901568ba5cf74776dc5cbd0ee140fdacd62c7140c9f5f7cba0dcc456e2'
             '95fd491795ed837012e71d6c8bececb82b6790a94b96615d4ffb0b018b5b7ea4')
 
-prepare() {
-  ln -sf $(ls ${srcdir} | grep ${pkgname}-${pkgver}-* | grep -v .tgz) ${pkgname}-${pkgver}
-}
+build() {
+  cd "${pkgname}-${pkgver}-"*
 
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
   make
 }
 
 package() {
-  install -Dm755 "${srcdir}/${pkgname}-${pkgver}/gitlab-workhorse" "${pkgdir}/usr/bin/gitlab-workhorse"
+  cd "${pkgname}-${pkgver}-"*
+
+  install -Dm755 "gitlab-workhorse" "${pkgdir}/usr/bin/gitlab-workhorse"
+  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
   install -Dm0644 "${srcdir}/gitlab-workhorse.service" "${pkgdir}/usr/lib/systemd/system/gitlab-workhorse.service"
 }
 



More information about the arch-commits mailing list