Initial Tup files

This commit is contained in:
Ehmry - 2019-02-25 23:52:23 +01:00
commit 67bdd705d5
5 changed files with 45 additions and 0 deletions

0
Tupfile.ini Normal file
View File

24
Tuprules.tup Normal file
View File

@ -0,0 +1,24 @@
.gitignore
export PKG_CONFIG_PATH
ifndef DEPOT_USER
error CONFIG_DEPOT_USER is undefined
endif
ifndef DEPOT_VERSION
error CONFIG_DEPOT_VERSION is undefined
endif
DEPOT_DIR = $(TUP_CWD)/depot/@(DEPOT_USER)
PUBLIC_DIR = $(TUP_CWD)/public/@(DEPOT_USER)
ifdef DEPOT_KEY
!depot_bin_tarball = |> ^ archive %d binary^ tar cfJ %o -C $(DEPOT_DIR)/bin/x86_64/%d . |> $(PUBLIC_DIR)/bin/x86_64/%d/@(DEPOT_VERSION).tar.xz
!depot_pkg_tarball = |> ^ archive %d package^ tar cfJ %o -C $(DEPOT_DIR)/pkg/%d . |> $(PUBLIC_DIR)/pkg/%d/@(DEPOT_VERSION).tar.xz
!public_signature = |> ^ sign %b^ gpg --detach-sign --digest-algo SHA256 --no-tty --local-user @(DEPOT_KEY) - < %f > %o |> %f.sig
endif

12
index/Tupfile Normal file
View File

@ -0,0 +1,12 @@
include_rules
ifndef SCULPT_VERSION
error CONFIG_SCULPT_VERSION is undefined
endif
: index.xml |> tup varsed %f - | xmllint - > %o |> $(DEPOT_DIR)/index/@(SCULPT_VERSION) {index}
ifdef DEPOT_KEY
: {index} |> xz -c %f > %o |> $(PUBLIC_DIR)/index/%b.xz {dist}
: {dist} |> !public_signature |>
endif

1
index/index.xml Normal file
View File

@ -0,0 +1 @@
<index/>

8
tup.config Normal file
View File

@ -0,0 +1,8 @@
CONFIG_SCULPT_VERSION=19.02
CONFIG_SDK_USER=ehmry
CONFIG_SDK_VERSION=19.02
CONFIG_UPSTREAM_USER=local
CONFIG_UPSTREAM_VERSION=current
CONFIG_DEPOT_USER=local
CONFIG_DEPOT_VERSION=current
#CONFIG_DEPOT_KEY=6E10414EE7160781F5FEE8FFB14D043A26B3D2C7