Manjaro Difference between revisions of "Translations:VCS PKGBUILD Guidelines/34/en"

Difference between revisions of "Translations:VCS PKGBUILD Guidelines/34/en"

From Manjaro
(Importing a new version from external source)
 
(No difference)

Latest revision as of 19:01, 7 September 2021

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (VCS PKGBUILD Guidelines)
=== A sample Git PKGBUILD ===
 # Maintainer: Dave Reisner <d@falconindy.com> 
 # Contributor: William Giokas (KaiSforza) <1007380@gmail.com>
 
 pkgname=expac-git
 pkgver=0.0.0
 pkgrel=1
 pkgdesc="Pacman database extraction utility"
 arch=('i686' 'x86_64')
 url="https://github.com/falconindy/expac"
 license=('MIT')
 depends=('pacman')
 makedepends=('git')
 conflicts=('expac')
 provides=('expac')
 # The git repo is detected by the 'git:' or 'git+' beginning. The branch
 # '$pkgname' is then checked out upon cloning, expediating versioning:
 #source=('git+https://github.com/falconindy/expac.git'
 source=("$pkgname"::'git://github.com/falconindy/expac.git'
         'expac_icon.png')
 # Because the sources are not static, skip Git checksum:
 md5sums=('SKIP'
         '020c36e38466b68cbc7b3f93e2044b49')
 
 pkgver() {
   cd "$srcdir/$pkgname"
   # Use the tag of the last commit
   git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
 }
 
 build() {
   cd "$srcdir/$pkgname"
   make
 }
 
 package() {
   cd "$srcdir/$pkgname"
   make PREFIX=/usr DESTDIR="$pkgdir" install
   install -Dm644 "$srcdir/expac_icon.png" "$pkgdir/usr/share/pixmaps/expac.png"
 }

A sample Git PKGBUILD

# Maintainer: Dave Reisner <d@falconindy.com> 
# Contributor: William Giokas (KaiSforza) <1007380@gmail.com>

pkgname=expac-git
pkgver=0.0.0
pkgrel=1
pkgdesc="Pacman database extraction utility"
arch=('i686' 'x86_64')
url="https://github.com/falconindy/expac"
license=('MIT')
depends=('pacman')
makedepends=('git')
conflicts=('expac')
provides=('expac')
# The git repo is detected by the 'git:' or 'git+' beginning. The branch
# '$pkgname' is then checked out upon cloning, expediating versioning:
#source=('git+https://github.com/falconindy/expac.git'
source=("$pkgname"::'git://github.com/falconindy/expac.git'
        'expac_icon.png')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP'
         '020c36e38466b68cbc7b3f93e2044b49')

pkgver() {
  cd "$srcdir/$pkgname"
  # Use the tag of the last commit
  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$pkgname"
  make
}

package() {
  cd "$srcdir/$pkgname"
  make PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm644 "$srcdir/expac_icon.png" "$pkgdir/usr/share/pixmaps/expac.png"
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.