Skip to content

Commit

Permalink
DIST: Add a PKGBUILD for Arch Linux
Browse files Browse the repository at this point in the history
Builds xoreos-tools from the git repository.
  • Loading branch information
DrMcCoy committed Jul 24, 2015
1 parent 031c2de commit bc7b540
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ EXTRA_DIST = \
README.md \
CONTRIBUTING.md \
CODE_OF_CONDUCT.md \
dists/arch/PKGBUILD \
.uncrustifyrc \
CMakeLists.txt \
cmake/CMakeAM.cmake \
Expand Down
34 changes: 34 additions & 0 deletions dists/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Maintainer: Sven Hesse <[email protected]>

pkgname=xoreos-tools-git
_gitname=xoreos-tools
pkgver=0.0.1.r29.g70f3ec4
pkgrel=1
pkgdesc="Tools to help with xoreos development"
arch=('i686' 'x86_64')
url="https://xoreos.org/"
license=('GPL3')
depends=('zlib')
makedepends=()
source=('git://github.com/xoreos/xoreos-tools.git')
md5sums=('SKIP')

pkgver() {
cd "$srcdir/$_gitname"

git describe --long --match desc/\* | cut -d '/' -f 2- | sed -e 's/\(.*\)-\([^-]*\)-\([^-]*\)/\1.r\2.\3/'
}

build() {
cd "$srcdir/$_gitname"

./autogen.sh
./configure --with-release=xArch --with-lto --prefix=/usr
make
}

package() {
cd "$srcdir/$_gitname"

make DESTDIR="$pkgdir/" install
}

0 comments on commit bc7b540

Please sign in to comment.