diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2012-08-30 16:04:49 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2012-08-30 16:11:04 -0700 |
commit | 3245b121275f770b7eb76b158ce0c999b64f6ac9 (patch) | |
tree | b7f41dd45dd4ba87c31612f659fa5f6c778dc03d /pkg | |
parent | 18bf65b19059aa349920cb6525d8bdae2d446787 (diff) |
pkg/archlinux: Stop generating the PKGBUILD from a template
That was just silly. Instead, rename PKGBUILD.in to PKGBUILD.template and
put a note on top that explains how to fill the template.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/CMakeLists.txt | 1 | ||||
-rw-r--r-- | pkg/archlinux/.gitignore | 1 | ||||
-rw-r--r-- | pkg/archlinux/CMakeLists.txt | 3 | ||||
-rw-r--r-- | pkg/archlinux/PKGBUILD.template (renamed from pkg/archlinux/PKGBUILD.in) | 15 |
4 files changed, 10 insertions, 10 deletions
diff --git a/pkg/CMakeLists.txt b/pkg/CMakeLists.txt deleted file mode 100644 index 36a2f0e..0000000 --- a/pkg/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_subdirectory(archlinux) diff --git a/pkg/archlinux/.gitignore b/pkg/archlinux/.gitignore deleted file mode 100644 index 670e123..0000000 --- a/pkg/archlinux/.gitignore +++ /dev/null @@ -1 +0,0 @@ -PKGBUILD diff --git a/pkg/archlinux/CMakeLists.txt b/pkg/archlinux/CMakeLists.txt deleted file mode 100644 index 00f9633..0000000 --- a/pkg/archlinux/CMakeLists.txt +++ /dev/null @@ -1,3 +0,0 @@ -configure_file(PKGBUILD.in - ${CMAKE_CURRENT_SOURCE_DIR}/PKGBUILD - @ONLY) diff --git a/pkg/archlinux/PKGBUILD.in b/pkg/archlinux/PKGBUILD.template index 54b724b..33be999 100644 --- a/pkg/archlinux/PKGBUILD.in +++ b/pkg/archlinux/PKGBUILD.template @@ -1,6 +1,11 @@ +# ============================================================= +# TODO: This is a template. Replace all variables of form @VAR@. +# ============================================================= + # Maintainer: Chad Versace <chad.versace@linux.intel.com> -pkgname='waffle-@waffle_major_version@' -pkgver='@waffle_minor_version@.@waffle_patch_version@' + +pkgname='waffle-@MAJOR@' +pkgver='@MINOR@.@PATCH@' pkgrel=1 pkgdesc='a library for choosing window system and OpenGL API at runtime' arch=('i686' 'x86_64') @@ -18,7 +23,7 @@ makedepends=( 'xcb-proto' ) source=("http://people.freedesktop.org/~chadversary/waffle/files/release/$pkgname.$pkgver/$pkgname.$pkgver.tar.xz") -sha256sums=('TODO') +sha256sums=('@TODO@') build() { cd "$srcdir/$pkgname.$pkgver" @@ -37,8 +42,8 @@ package() { cd "$srcdir/$pkgname.$pkgver" make DESTDIR="$pkgdir/" install install -m755 -d "$pkgdir/usr/share/licenses/$pkgname" - install -m644 "$pkgdir/usr/share/doc/waffle-@waffle_major_version@/LICENSE.txt" \ - "$pkgdir/usr/share/licenses/waffle-@waffle_major_version@/LICENSE.txt" + install -m644 "$pkgdir/usr/share/doc/$pkgname/LICENSE.txt" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" } # vim:set ts=2 sw=2 et: |